try carter's fix1

This commit is contained in:
lady ada 2021-11-17 14:22:19 -05:00
parent 106018df52
commit 9a525b2ba3
1 changed files with 2 additions and 8 deletions

View File

@ -1,3 +1,4 @@
#include <Arduino.h>
#include <Wire.h>
#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);