Next thing I got an Errno110 when running the script again which i understand is that it cannot communicate with the display?
Code: Select all
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "ssd1306.py", line 117, in __init__
File "ssd1306.py", line 37, in __init__
File "ssd1306.py", line 62, in init_display
File "ssd1306.py", line 122, in write_cmd
OSError: [Errno 110] ETIMEDOUT
Code: Select all
from machine import Pin, I2C
import ssd1306
i2c = I2C(scl=Pin(5), sda=Pin(4))
display = ssd1306.SSD1306_I2C(64, 48, i2c)
i2c.scan()