You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import micropyGPS, board, busio, adafruit_gps
uart = busio.UART(board.GP16, board.GP17, baudrate=9600, timeout=100)
adagps = adafruit_gps.GPS(uart, debug=False)
adagps.send_command(b'PMTK314,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0')
adagps.send_command(b"PMTK220,1000")
gps = micropyGPS.MicropyGPS()
while True:
data = uart.read(64) # read up to 64 bytes
# print(data) # this is a bytearray type
if data is not None:
data_string = ''.join([chr(b) for b in data])
gps.update(data_string)
Once ran, it provides:
Traceback (most recent call last):
File "code.py", line 14, in <module>
File "micropyGPS.py", line 563, in update
TypeError: ord() expected a character, but string of length 75 found
The text was updated successfully, but these errors were encountered:
killsecurly
changed the title
TypeError: ord() expected a character, but string of length 75 found
TypeError: ord() expected a character, but string of length 64 found
Dec 12, 2024
Using CircuitPython / board.UART / Pi Pico 2 for:
Once ran, it provides:
The text was updated successfully, but these errors were encountered: