40 #include <SparkFun_Toolkit.h>
103 if (_theI2CBus.init(wirePort, address) != ksfTkErrOk)
135 if (_theI2CBus.ping() != ksfTkErrOk)
160 return _theI2CBus.address();
175 sfTkArdI2C _theI2CBus;
Arduino I2C implementation for the AS7343 sensor.
Definition: SparkFun_AS7343.h:69
bool isConnected(void)
Checks if the AS7343 sensor is connected and responding.
Definition: SparkFun_AS7343.h:133
bool begin(const uint8_t &address=kAS7343Addr, TwoWire &wirePort=Wire)
Initializes the AS7343 sensor with I2C communication.
Definition: SparkFun_AS7343.h:101
SfeAS7343ArdI2C()
Definition: SparkFun_AS7343.h:71
uint8_t getDeviceAddress(void)
Gets the currently configured I2C address of the AS7343 sensor.
Definition: SparkFun_AS7343.h:158
Definition: sfDevAS7343.h:654
uint8_t getDeviceID(void)
Requests the device ID from the sensor.
Definition: sfDevAS7343.cpp:46
void setCommunicationBus(sfTkIBus *theBus)
Sets the communication bus to the specified bus.
Definition: sfDevAS7343.cpp:57
Header file for the SparkFun Spectral Sensor - AS7343.
const uint8_t kAS7343Addr
Definition: sfDevAS7343.h:51
const uint8_t kDefaultAS7343DeviceID
Definition: sfDevAS7343.h:53