mchobby / esp8266-upy

MicroPython Cross-platform Drivers - collection of code, wiring and sample for various breakout boards - Works with ESP8266, Pyboard, PYB405, Wemos, etc))
53 stars 30 forks source link

SenseHat - test_joy.py on Pico #2

Open mchobby opened 3 years ago

mchobby commented 3 years ago

Recurrent reading of Joystick position returns an OSError 5 exception on the Raspberry-Pi Pico. This seems to be unpredictable. Accordingly to MicroPython forums, OSError would be a NACK sent by the device causing the exception raising.

Remark: At the moment, no workaround found for this issue. Trying to capture it with a try/except from SenseHat.py just lockdown the Joystick code execution on the Pico!