![]() However, due to the intermittent nature of the I2C hangup bug, it takes a while (hours/days) to grind through enough iterations to excite the bug reliably, so it may be a while before I have a good demonstration I’m currently working on a ‘before/after’ post to demonstrate that the new timeout feature actually works with real hardware scenarios. Note that you have to explicitly add a timeout value (1000 in my example above) or the timeout feature will still not be enabled! The ‘true’ parameter tells the library to reset the I2C bus if a timeout is detected – surely something you will want to do. ![]() setWireTimeout ( 1000, true ) //timeout value in uSec - SBWire uses 100 uSec, so 1000 should be OK
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |