Skip to content

Commit 9ace30c

Browse files
authored
Swap RX and TX pins in UART initialization
Pins were in the wrong order. Thanks `Jeff M` in discord: https://discord.com/channels/327254708534116352/537365702651150357/1448133233647812618
1 parent f21c967 commit 9ace30c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/gps_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# For other boards set RX = GPS module TX, and TX = GPS module RX pins.
1818
rx = board.RX # Change to board.GP4 for Raspberry Pi Pico boards
1919
tx = board.TX # Change to board.GP5 for Raspberry Pi Pico boards
20-
uart = busio.UART(rx, tx, baudrate=9600, timeout=10)
20+
uart = busio.UART(tx, rx, baudrate=9600, timeout=10)
2121

2222
# for a computer, use the pyserial library for uart access
2323
# import serial

0 commit comments

Comments
 (0)