From e9b3b6ebe728b3464a53d11d4414225bbedb008d Mon Sep 17 00:00:00 2001 From: Anne Barela <1911920+TheKitty@users.noreply.github.com> Date: Wed, 23 Jul 2025 12:30:18 -0400 Subject: [PATCH] Update gps_simpletest.py Add comments for use of GP4 and GP5 for Raspberry Pi Pico per guide feedback and forum post --- examples/gps_simpletest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/gps_simpletest.py b/examples/gps_simpletest.py index cc74222..49b3b1d 100644 --- a/examples/gps_simpletest.py +++ b/examples/gps_simpletest.py @@ -15,7 +15,9 @@ # 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