It doesn't respond to an I2C scan. I then connected the Pyboard to a known good I2C module using the same Pyboard pins and code; it responded correctly.
I've tried running with CS open circuit, connected to Gnd and connected to 3v3: each time it displays an empty list. Does anyone have any ideas before I start fiddling around with an Arduino to decide if it needs sending back? This is the code I'm using for the scan, with very conservative timings for the reset.
Code: Select all
import utime
import machine
import ssd1306
pscl = machine.Pin('Y9', machine.Pin.OUT_PP)
psda = machine.Pin('Y10', machine.Pin.OUT_PP)
rst = machine.Pin('Y11', machine.Pin.OUT_PP)
rst(1)
utime.sleep_ms(100)
rst(0)
utime.sleep_ms(100)
rst(1)
utime.sleep_ms(1000)
i2c = machine.I2C(scl=pscl, sda=psda)
print(i2c.scan())