On my Pi5 I did this to check the status of GPIO 14 and 15:
pi@pibk:~/my_project $ pinctrl get 14
14: a4 pn | hi // GPIO14 = TXD0
pi@pibk:~/my_project $ pinctrl get 15
15: a4 pu | hi // GPIO15 = RXD0
That looks good. What does yours show?
Then we can use (say) python to read/write the Pi5 uart on the GPIO pins 14/15.Notice the Pi5 uses /dev/ttyAMA0
pi@pibk:~/my_project $ pinctrl get 14
14: a4 pn | hi // GPIO14 = TXD0
pi@pibk:~/my_project $ pinctrl get 15
15: a4 pu | hi // GPIO15 = RXD0
That looks good. What does yours show?
Then we can use (say) python to read/write the Pi5 uart on the GPIO pins 14/15.
Code:
with serial.Serial('/dev/ttyAMA0', 115200, timeout = 10) as ser:
Statistics: Posted by neilgl — Thu Aug 15, 2024 3:07 pm