oof
This commit is contained in:
parent
76bcd63f18
commit
106018df52
|
|
@ -20,7 +20,7 @@ jobs:
|
||||||
run: bash ci/actions_install.sh
|
run: bash ci/actions_install.sh
|
||||||
|
|
||||||
- name: test platforms
|
- name: test platforms
|
||||||
run: python3 ci/build_platform.py main_platforms
|
run: python3 ci/build_platform.py main_platforms zero
|
||||||
|
|
||||||
- name: clang
|
- name: clang
|
||||||
run: python3 ci/run-clang-format.py -e "ci/*" -e "bin/*" -r .
|
run: python3 ci/run-clang-format.py -e "ci/*" -e "bin/*" -r .
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,11 @@
|
||||||
///< 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:
|
||||||
|
#ifdef ARDUINO_SAMD_ZERO
|
||||||
Adafruit_I2CDevice(uint8_t addr, arduino::TwoWire *theWire = &Wire);
|
Adafruit_I2CDevice(uint8_t addr, arduino::TwoWire *theWire = &Wire);
|
||||||
|
#else
|
||||||
|
Adafruit_I2CDevice(uint8_t addr, TwoWire *theWire = &Wire);
|
||||||
|
#endif
|
||||||
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 +29,11 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
uint8_t _addr;
|
uint8_t _addr;
|
||||||
|
#ifdef ARDUINO_SAMD_ZERO
|
||||||
arduino::TwoWire *_wire;
|
arduino::TwoWire *_wire;
|
||||||
|
#else
|
||||||
|
TwoWire *_wire;
|
||||||
|
#endif
|
||||||
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