Open Koepel opened 6 years ago
I'm in the process of updating a large part of the existing device firmware, so I'll review the notes you've linked to. I think I've learned a bit more about the library over time and am interested in what's there.
Thanks a lot for this! 😄
The usage of the Wire library is wrong in many places.
A delay between
Wire.beginTransmission()
andWire.write()
is not needed, because they only operate on a buffer (a buffer inside the Wire library). A delay betweenWire.write()
andWire.endTransmission()
is also not needed.A timeout or a delay or waiting after a
Wire.requestFrom()
is not needed. There is no such thing as a timeout after aWire.requestFrom()
. That has been made up, and copied a lot.A
Wire.requestFrom()
should not be followed by aWire.endTransmission()
.The common mistakes are: Common-mistakes I wrote also an alternative explanation of the functions of the Wire library.