I have Micropython v1.9.2 on an HTIT-wb32 ESP32 board. I can run code, connect to my router, etc. I have not been able to access the built-in OLED display through I2C.
The OLED pin layout for the board states that SDA is on pin 4 and SCL is on pin 15.
So with the code:
from machine import I2C, Pin
i2c = I2C(sda=Pin(4), scl=Pin(15))
i2c.scan()
I should get an address from i2c.scan()
but it is returning:
[]
Other code examples I've read seem pretty straightforward and just work but I have not found code for this device yet.
What am I doing wrong?