| #if defined(__IMXRT1052__) || defined(__IMXRT1062__) | #if defined(__IMXRT1052__) || defined(__IMXRT1062__) | ||||
| #include <Arduino.h> | |||||
| #include <core/Arduino.h> | |||||
| #include <stdint.h> | #include <stdint.h> | ||||
| #define BUFFER_LENGTH 32 | #define BUFFER_LENGTH 32 |
| 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> | |||||
| #include <core/Arduino.h> | |||||
| #if defined(__AVR__) | #if defined(__AVR__) | ||||
| #include "Wire.h" | |||||
| #include "wire/Wire.h" | |||||
| extern "C" { | extern "C" { | ||||
| #include <stdlib.h> | #include <stdlib.h> | ||||
| #include <string.h> | #include <string.h> | ||||
| #include <inttypes.h> | #include <inttypes.h> | ||||
| #include "twi.h" | |||||
| #include "wire/utility/twi.h" | |||||
| } | } | ||||
| #include "Wire.h" | |||||
| #include "wire/Wire.h" | |||||
| #include <elapsedmillis/elapsedMillis.h> | |||||
| #if defined(__IMXRT1062__) | #if defined(__IMXRT1062__) | ||||
| * THE SOFTWARE. | * THE SOFTWARE. | ||||
| */ | */ | ||||
| #include <Arduino.h> | |||||
| #include "Wire.h" | |||||
| #include <core/Arduino.h> | |||||
| #include "wire/Wire.h" | |||||
| #if defined(__arm__) && defined(TEENSYDUINO) && (defined(__MKL26Z64__) || defined(__MK20DX128__) || defined(__MK20DX256__) || defined(__MK64FX512__) || defined(__MK66FX1M0__)) | #if defined(__arm__) && defined(TEENSYDUINO) && (defined(__MKL26Z64__) || defined(__MK20DX128__) || defined(__MK20DX256__) || defined(__MK64FX512__) || defined(__MK66FX1M0__)) | ||||
| #include <avr/io.h> | #include <avr/io.h> | ||||
| #include <avr/interrupt.h> | #include <avr/interrupt.h> | ||||
| #include <compat/twi.h> | #include <compat/twi.h> | ||||
| #include "Arduino.h" // for digitalWrite | |||||
| #include <core/Arduino.h> // for digitalWrite | |||||
| #ifndef cbi | #ifndef cbi |