22 #ifndef __SFE_SMOL_POWER_BOARD_IO__
23 #define __SFE_SMOL_POWER_BOARD_IO__
42 bool begin(
byte address, TwoWire& wirePort);
48 bool readSingleByte(
byte registerAddress,
byte* buffer,
byte waitMS = 0);
54 bool readMultipleBytes(
byte registerAddress,
byte* buffer,
byte packetLength,
byte waitMS = 0);
Definition: SparkFun_smol_Power_Board_IO.h:32
bool readMultipleBytes(byte registerAddress, byte *buffer, byte packetLength, byte waitMS=0)
Read multiple bytes from the SparkFun smôl Power Board over I2C. First the register address is writte...
Definition: SparkFun_smol_Power_Board_IO.cpp:113
bool begin(byte address, TwoWire &wirePort)
Begin communication with the SparkFun smôl Power Board over I2C.
Definition: SparkFun_smol_Power_Board_IO.cpp:43
bool writeSingleByte(byte registerAddress, byte value)
Write a single byte to the SparkFun smôl Power Board over I2C.
Definition: SparkFun_smol_Power_Board_IO.cpp:169
SMOL_POWER_BOARD_IO()
Create an object to communicate with the SparkFun smôl Power Board over I2C.
Definition: SparkFun_smol_Power_Board_IO.h:39
bool writeMultipleBytes(byte registerAddress, const byte *buffer, byte packetLength)
Write multiple bytes to the SparkFun smôl Power Board over I2C.
Definition: SparkFun_smol_Power_Board_IO.cpp:86
bool isConnected()
Reads the smôl Power Board's I2C address and confirms it matches _address.
Definition: SparkFun_smol_Power_Board_IO.cpp:56
bool readSingleByte(byte registerAddress, byte *buffer, byte waitMS=0)
Read a single byte from the SparkFun smôl Power Board over I2C. First the register address is written...
Definition: SparkFun_smol_Power_Board_IO.cpp:144