Skip to content

Commit 72d0450

Browse files
authored
Merge pull request #121 from adafruit/dhalbert-patch-1
Swap RX and TX pins in UART initialization
2 parents f21c967 + 72346a7 commit 72d0450

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/gps_simpletest.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
# Create a serial connection for the GPS connection using default speed and
1515
# a slightly higher timeout (GPS modules typically update once a second).
1616
# These are the defaults you should use for the GPS FeatherWing.
17-
# For other boards set RX = GPS module TX, and TX = GPS module RX pins.
18-
rx = board.RX # Change to board.GP4 for Raspberry Pi Pico boards
19-
tx = board.TX # Change to board.GP5 for Raspberry Pi Pico boards
20-
uart = busio.UART(rx, tx, baudrate=9600, timeout=10)
17+
# Connect UART rx to GPS module TX, and UART tx to GPS module RX.
18+
tx = board.TX # Use board.GP4 or other UART TX on Raspberry Pi Pico boards.
19+
rx = board.RX # Use board.GP5 or other UART RX on Raspberry Pi Pico boards.
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)