I have sample app that wait on signal from IR sensor that is connected to GPIO15 and 14:
ser = serial.Serial(port="/dev/ttyAMA0",baudrate=115200, timeout=1)
io.add_event_detect(15,io.RISING, callback=inputLow, bouncetime=200)
def inputLow(channel):
print('signal test')
And now I want to run screen: screen /dev/ttyAMA0 115200
- 1) I can only run screen because when I run above application I get error device ttyAMA0 is busy
- 2) when I run only gnu screen in terminal I see only black screen, when I send signal to IR sensor on the terminal nothing happens, screen is black
How can I read data from ttyAMA0?