From 9a525b2ba3315d44640030830620cc4bf085c569 Mon Sep 17 00:00:00 2001 From: lady ada Date: Wed, 17 Nov 2021 14:22:19 -0500 Subject: [PATCH] try carter's fix1 --- Adafruit_I2CDevice.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Adafruit_I2CDevice.h b/Adafruit_I2CDevice.h index fda0600..bdfb6bb 100644 --- a/Adafruit_I2CDevice.h +++ b/Adafruit_I2CDevice.h @@ -1,3 +1,4 @@ +#include #include #ifndef Adafruit_I2CDevice_h @@ -6,11 +7,8 @@ ///< The class which defines how we will talk to this device over I2C class Adafruit_I2CDevice { public: -#ifdef ARDUINO_SAMD_ZERO - Adafruit_I2CDevice(uint8_t addr, arduino::TwoWire *theWire = &Wire); -#else Adafruit_I2CDevice(uint8_t addr, TwoWire *theWire = &Wire); -#endif + uint8_t address(void); bool begin(bool addr_detect = true); bool detected(void); @@ -29,11 +27,7 @@ public: private: uint8_t _addr; -#ifdef ARDUINO_SAMD_ZERO - arduino::TwoWire *_wire; -#else TwoWire *_wire; -#endif bool _begun; size_t _maxBufferSize; bool _read(uint8_t *buffer, size_t len, bool stop);