Page 1 of 1

Does pyboard support soft I2C?

Posted: Sat Jan 28, 2017 3:39 pm
by shaoziyang
Does pyboard may use any pin to implement soft I2C? Because hardware I2C pin can not use.

Re: Does pyboard support soft I2C?

Posted: Sat Jan 28, 2017 3:44 pm
by dhylands
Yes. If you construct the I2C by doing:

Code: Select all

i2c = machine.I2C(-1, sda=machine.Pin('X1'), scl=machine.Pin('X2'))