ghi-electronics / micropython

A MicroPython port to GHI Electronics SITCore SC13xxx line of products.
https://micropython.org
MIT License
0 stars 0 forks source link

I2C #9

Closed Palomino34 closed 3 years ago

Palomino34 commented 3 years ago

Software I2C worked but then hardware I2C is giving an error about deprecated.

Palomino34 commented 3 years ago

Software: pscl = Pin("PB8", Pin.OPEN_DRAIN) psda = Pin("PB9", Pin.OPEN_DRAIN) i2c = SoftI2C(pscl, psda, freq=100000) i2c.scan()

Hardware i2c = I2C(1) i2c.scan()