Skip to content

Commit c11c7d4

Browse files
authored
Merge pull request #117 from adafruit/TheKitty-patch-1
Update gps_simpletest.py for Raspberry Pi Pico
2 parents 0cccfba + e9b3b6e commit c11c7d4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/gps_simpletest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
# a slightly higher timeout (GPS modules typically update once a second).
1616
# These are the defaults you should use for the GPS FeatherWing.
1717
# For other boards set RX = GPS module TX, and TX = GPS module RX pins.
18-
uart = busio.UART(board.TX, board.RX, baudrate=9600, timeout=10)
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)
1921

2022
# for a computer, use the pyserial library for uart access
2123
# import serial

0 commit comments

Comments
 (0)