![]() ![]() The I2C bus is not a fault tolerant bus, it should work 100%. Someone pinpointed the code line that caused the Wire library for SAMD21 and SAMD51 to stop and there was an issue on Github and maybe it was fixed for some Arduino boards.Ĭan you give a link to your display and to those examples of Matrix Orbital ? I vaguely remember a question a few weeks ago. Adafruit also puts a lot of work in CircuitPython. I don't even know where the I2C library of Adafruit for the SAMD51 is. ![]() You have to ask Adafruit if they have implemented the timeout for their Metro M4. In my opinion, the example on the setWireTimeout() page is too complex, I see no need to test if the error code is 5 or use the flag. The function setWireTimeout() is all that is needed, together with a check of the return value of Wire.endTransmission() and requestFrom(). Scroll down and you see that there are three functions for the timeout. Have a look at the functions of the Arduino Wire library: You can still fix your post and fix that link to a non-existing website. Mainly because it is very outdated and only for AVR boards and it has probably bugs and no one knows if that code is any good. Is it okay if I give some friendly and constructive notes ? You are too much focused on the timeout, and the I2C bus is not a fault tolerant bus.įirst of all, please forget those websites about a timeout. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |