Search found 1 match

by microcarl
Thu Mar 05, 2020 6:40 pm
Forum: MicroPython pyboard
Topic: i2c error recovery
Replies: 4
Views: 4167

Re: i2c error recovery

I use the foloowing for I2C WRITE() exception handling. Maybe you can modify the basics to help with your issue... #********************************************************************# def WriteData(address, data): n = 0 while n < 3: try: i2c.writeto(address, ' ') time.sleep(0.05) # Wait for slave ...