Board Name
Raspberry Pi Pico
Steps
- Install MicroPython on the Pico
- Install Blinka and the Adafruit_CircuitPython_GPS Lib
- Connect the Adafruit Ultimate GPS Breakout to the Pico
- Try to run gps_simpletest.py
Description
The board.UART implementation doesn't have in_waiting, which is used by the Adafruit CircuitPython GPS Library, preventing it from working on the Pico.
Closest related issue is #332
Additional information
I was able to successfully port the GPS library to pure MicroPython by making the in_waiting getter in the GPS lib return
result = self._uart.any()
return result if result == 0 else int(result / 8)
But I am not sure if that's the right way to handle this.
MicroPython is also missing time.struct_time and time.monotonic(), I replaced them by a List and time.time_ns() to be able to get the GPS lib to work, though I should probably open an issue or PR on the GPS Lib about that once this is fixed
Board Name
Raspberry Pi Pico
Steps
Description
The board.UART implementation doesn't have in_waiting, which is used by the Adafruit CircuitPython GPS Library, preventing it from working on the Pico.
Closest related issue is #332
Additional information
I was able to successfully port the GPS library to pure MicroPython by making the in_waiting getter in the GPS lib return
But I am not sure if that's the right way to handle this.
MicroPython is also missing
time.struct_timeandtime.monotonic(), I replaced them by a List andtime.time_ns()to be able to get the GPS lib to work, though I should probably open an issue or PR on the GPS Lib about that once this is fixed