I2C with new hardware API on CC3200 port
I2C with new hardware API on CC3200 port
How to init (hardware) I2C interface via new hardware API on CC3200 port?
Re: I2C with new hardware API on CC3200 port
This code worked for me:
Code: Select all
i2c_scl = machine.Pin("GP12", mode=machine.Pin.ALT, alt = 5)
i2c_sda = machine.Pin("GP13", mode=machine.Pin.ALT, alt = 5)
i2c = machine.I2C(scl=i2c_scl, sda=i2c_sda, freq=100000)