bigal
New Member
Posts: 12
|
Post by bigal on Sept 13, 2019 16:43:52 GMT
I use the I2C to drive additional I/Os (MCP23017). It works most of the times. Sometimes the I2C fails after program update. Then the only way to reactivate the bus is to power-off/power-on the ShieldBuddy.
I use I2C on the pin 20/21 with the supplied Wire-library.
When the bus is not working there is no signal at all on the pins (tested with my oscilloscope)...
Any idea?
Alex
|
|
|
Post by Admin on Sept 16, 2019 13:08:49 GMT
Have you got pull-up resistors on the SCL and SDA pins? You could try reducing the Baudrate from the default 100000 bit/s using:
// Set 10kbit/s Wire.setWireBaudrate(10000);
|
|