| Modified 2012 by Todd Krein (todd@krein.org) to implement repeated starts | Modified 2012 by Todd Krein (todd@krein.org) to implement repeated starts | ||||
| */ | */ | ||||
| #include <Arduino.h> | |||||
| #if defined(__AVR__) | #if defined(__AVR__) | ||||
| #include "Wire.h" | #include "Wire.h" |
| #elif defined(__AVR__) | #elif defined(__AVR__) | ||||
| #include <inttypes.h> | #include <inttypes.h> | ||||
| #include "Arduino.h" | |||||
| #include <Arduino.h> | |||||
| #define BUFFER_LENGTH 32 | #define BUFFER_LENGTH 32 | ||||
| #define WIRE_HAS_END 1 | #define WIRE_HAS_END 1 |