Update gps_simpletest.py
Add comments for use of GP4 and GP5 for Raspberry Pi Pico per guide feedback and forum post
This commit is contained in:
parent
0cccfbaecd
commit
e9b3b6ebe7
1 changed files with 3 additions and 1 deletions
|
|
@ -15,7 +15,9 @@ import adafruit_gps
|
|||
# a slightly higher timeout (GPS modules typically update once a second).
|
||||
# These are the defaults you should use for the GPS FeatherWing.
|
||||
# For other boards set RX = GPS module TX, and TX = GPS module RX pins.
|
||||
uart = busio.UART(board.TX, board.RX, baudrate=9600, timeout=10)
|
||||
rx = board.RX # Change to board.GP4 for Raspberry Pi Pico boards
|
||||
tx = board.TX # Change to board.GP5 for Raspberry Pi Pico boards
|
||||
uart = busio.UART(rx, tx, baudrate=9600, timeout=10)
|
||||
|
||||
# for a computer, use the pyserial library for uart access
|
||||
# import serial
|
||||
|
|
|
|||
Loading…
Reference in a new issue