I2C with new hardware API on CC3200 port

Questions and discussion about The WiPy 1.0 board and CC3200 boards.
Target audience: Users with a WiPy 1.0 or CC3200 board.
Post Reply
danielm
Posts: 132
Joined: Mon Oct 05, 2015 12:24 pm

I2C with new hardware API on CC3200 port

Post by danielm » Sun Jun 18, 2017 11:23 am

How to init (hardware) I2C interface via new hardware API on CC3200 port?

danielm
Posts: 132
Joined: Mon Oct 05, 2015 12:24 pm

Re: I2C with new hardware API on CC3200 port

Post by danielm » Sun Jun 18, 2017 5:08 pm

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)

Post Reply