So I tried to code a Raspberry Pi Pico to use an Ultrasonic sensor and display distance on an ssd1306 display (128x64) but I keep getting this error in my code for some reason:
Traceback (most recent call last):
File "<stdin>", line 9, in <module>
File "ssd1306.py", line 118, in __init__
File "ssd1306.py", line 37, in __init__
File "ssd1306.py", line 74, in init_display
File "ssd1306.py", line 123, in write_cmd
OSError: [Errno 110] ETIMEDOUT
For sake of saving space I saved the code (two files) onto a google drive link:
The code started to not work when I tried to install the micropython-ssd1306 module on PyPI but got an error. So it may be an issue on Thonny, but I don't know. Please someone let me know how to fix this!