Looking closely, the firmware throws a warning: [...] In function 'bool mcp23008Init()': [...]:2570:1: warning: no return statement in function returning non-void [-Wreturn-type] The line corresponds to the end of the mcp23008Init function. setup () { [...] if(i2cScan(0,0x20)...
oled =NoneclassBadAppleOled:definit_oled(self):globaloled i2c = SoftI2C(sda=Pin(21), scl=Pin(22),freq=400000) i2c.scan()print(i2c) oled = SSD1306_I2C(128,64, i2c)defshow_pic(self):globaloled show_pbm ='/data/pyamp/example/pbm/rangcha.pbm'withopen(show_pbm,'rb')asf: f.readl...
'''classSHT3X(object):# i2cDev should be an I2C object and it should be opened before __init__ is calleddef__init__(self, i2cDev): self._i2cDev =Noneifnotisinstance(i2cDev, I2C):raiseValueError("parameter is not an I2C object")# make AHB21B's internal object points to _i2cDevse...