try to change namespace?
This commit is contained in:
parent
86cb7eefc8
commit
76bcd63f18
|
|
@ -127,16 +127,15 @@ bool Adafruit_I2CDevice::write(const uint8_t *buffer, size_t len, bool stop,
|
||||||
DEBUG_SERIAL.println();
|
DEBUG_SERIAL.println();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
DEBUG_SERIAL.println();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef DEBUG_SERIAL
|
if (stop) {
|
||||||
DEBUG_SERIAL.print("\tStop: ");
|
DEBUG_SERIAL.print("\tSTOP");
|
||||||
DEBUG_SERIAL.println(stop);
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (_wire->endTransmission(stop) == 0) {
|
if (_wire->endTransmission(stop) == 0) {
|
||||||
#ifdef DEBUG_SERIAL
|
#ifdef DEBUG_SERIAL
|
||||||
|
DEBUG_SERIAL.println();
|
||||||
// DEBUG_SERIAL.println("Sent!");
|
// DEBUG_SERIAL.println("Sent!");
|
||||||
#endif
|
#endif
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
///< The class which defines how we will talk to this device over I2C
|
///< The class which defines how we will talk to this device over I2C
|
||||||
class Adafruit_I2CDevice {
|
class Adafruit_I2CDevice {
|
||||||
public:
|
public:
|
||||||
Adafruit_I2CDevice(uint8_t addr, TwoWire *theWire = &Wire);
|
Adafruit_I2CDevice(uint8_t addr, arduino::TwoWire *theWire = &Wire);
|
||||||
uint8_t address(void);
|
uint8_t address(void);
|
||||||
bool begin(bool addr_detect = true);
|
bool begin(bool addr_detect = true);
|
||||||
bool detected(void);
|
bool detected(void);
|
||||||
|
|
@ -25,7 +25,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
uint8_t _addr;
|
uint8_t _addr;
|
||||||
TwoWire *_wire;
|
arduino::TwoWire *_wire;
|
||||||
bool _begun;
|
bool _begun;
|
||||||
size_t _maxBufferSize;
|
size_t _maxBufferSize;
|
||||||
bool _read(uint8_t *buffer, size_t len, bool stop);
|
bool _read(uint8_t *buffer, size_t len, bool stop);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue