Archive for date: October 14, 2011

Arduino playground provides the WireLibraryDetailedReference

October 14, 2011 | Arduino | By: Mark VandeWettering

In seeking some more details on the inner workings of the Wire library for the Arduino, I chanced across this rather informative link on the Arduino Playground website: Arduino playground – WireLibraryDetailedReference Of particular interest to me was the description how requestFrom worked. It doesn’t just issue the request: it calls the low level twi_readFrom() […]

Strange code in I2C code…

October 14, 2011 | Arduino | By: Mark VandeWettering

I noticed something while reading code that uses the Wire library for the Arduino, such as you might find below… Arduino playground – I2CEEPROM Check out this two line fragment from the read function: for ( c = 0; c < length; c++ ) if (Wire.available()) buffer[c] = Wire.receive(); Is anyone else struck by the […]