48#include <SparkFun_Toolkit.h>
92 if (_theI2CBus.init(wirePort, address) != ksfTkErrOk)
113 if (_theI2CBus.ping() != ksfTkErrOk)
124 sfTkArdI2C _theI2CBus;
163 if (_theI2CBus.init(wirePort, address) != ksfTkErrOk)
184 if (_theI2CBus.ping() != ksfTkErrOk)
197 sfTkArdI2C _theI2CBus;
Arduino I2C implementation for the INA228 high-precision power monitor.
Definition: SparkFun_INA2XX.h:69
SfeINA228ArdI2C()
Definition: SparkFun_INA2XX.h:71
bool begin(uint8_t address=kI2CAddress, TwoWire &wirePort=Wire)
Initializes the INA228 with I2C communication.
Definition: SparkFun_INA2XX.h:90
bool isConnected(void)
Checks if the INA228 is connected and responding.
Definition: SparkFun_INA2XX.h:111
Arduino I2C implementation for the INA237 power monitor.
Definition: SparkFun_INA2XX.h:140
bool begin(uint8_t address=kI2CAddress, TwoWire &wirePort=Wire)
Initializes the INA237 with I2C communication.
Definition: SparkFun_INA2XX.h:161
bool isConnected(void)
Checks if the INA237 is connected and responding.
Definition: SparkFun_INA2XX.h:182
SfeINA237ArdI2C()
Definition: SparkFun_INA2XX.h:142
INA228 high-precision power/energy/charge monitor driver.
Definition: sfDevINA228.h:37
INA237 power monitor driver (also covers the register-compatible INA238).
Definition: sfDevINA237.h:37
static const uint16_t kINA238DeviceIDValue
INA238 device ID (register-compatible with INA237)
Definition: sfDevINA2XX.h:674
static const uint16_t kDeviceIDMask
Mask for device ID (ignore revision)
Definition: sfDevINA2XX.h:675
static const uint8_t kI2CAddress
Default 7-bit I2C address for the SparkFun Qwiic Power Monitor board.
Definition: sfDevINA2XX.h:642
sfTkError_t getDeviceID(uint16_t &id)
Read the Device ID register (0x3F).
Definition: sfDevINA2XX.cpp:57
static const uint16_t kINA228DeviceIDValue
INA228 device ID (upper 12 bits)
Definition: sfDevINA2XX.h:672
static const uint16_t kINA237DeviceIDValue
INA237 device ID (upper 12 bits)
Definition: sfDevINA2XX.h:673
sfTkError_t begin(sfTkIBus *theBus=nullptr)
Initialize the device driver with the given bus.
Definition: sfDevINA2XX.cpp:28
Header file for the SparkFun INA228 high-precision power monitor driver.
Header file for the SparkFun INA237 power monitor driver.