Closed Short-bus closed 5 months ago
Tested busio.UART.read(nbytes=1) on circuitpython 7.2.0, this generates an error. So have not futureproofed the function call yet. Have left a comment in the code instead to warn that the busio.UART.read() call must change depending upon the circuitpython version.
Also changed the initialization color on the microcontroller from PINK 5 seconds, to CYAN 3 seconds. PINK is too close to the RED error color and it does not need to be displayed for very long.
circuitpython/code.py in the 2024-01-issues branch now successfully runs on the latest CircuitPython stable release for the Tiny2040.
Adafruit CircuitPython 8.2.10 on 2024-02-14; Pimoroni Tiny 2040 (8MB) with rp2040
The busio.UART.read(nbytes=1) error was misleading, the fault was elsewhere.
The program now uses a slightly different method to initialize the UART comms and to perform the read.
For CircuitPython7.2 the old code remains in use to reduce the risk of disturbing existing installations. The program chooses which solution to use at launch depending upon the CircuitPython version identified in the boot_out.txt file. Any version BEFORE 8.0 uses the original solution. Any version from 8.0 onwards uses the new solution.
Done.
Current recommendation is CircuitPython 7.2.0 installation. Later versions have not been validated. When trying to run CircuitPython 8.x some items appeared.