try carter's fix1
This commit is contained in:
parent
106018df52
commit
9a525b2ba3
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue