22 #ifndef __SFE_SMOL_POWER_BOARD__
23 #define __SFE_SMOL_POWER_BOARD__
29 #include <SparkFun_MAX1704x_Fuel_Gauge_Arduino_Library.h>
64 bool begin(
byte deviceAddress = SFE_SMOL_POWER_DEFAULT_I2C_ADDRESS, TwoWire &wirePort = Wire);
76 bool begin(
byte deviceAddress = SFE_SMOL_POWER_DEFAULT_I2C_ADDRESS, TwoWire &wirePort = Wire);
81 SFE_MAX1704X powerBoardFuelGauge = SFE_MAX1704X(MAX1704X_MAX17048);
sfe_power_board_WDT_prescale_e
Definition: SparkFun_smol_Power_Board_Constants.h:86
sfe_power_board_ADC_ref_e
Definition: SparkFun_smol_Power_Board_Constants.h:78
Definition: SparkFun_smol_Power_Board_IO.h:32
Definition: SparkFun_smol_Power_Board.h:33
byte getResetReason()
Read the reason for the ATtiny's most recent reset.
Definition: SparkFun_smol_Power_Board.cpp:116
bool isConnected()
Class to communicate with the SparkFun smôl Power Boards.
Definition: SparkFun_smol_Power_Board.cpp:59
sfe_power_board_ADC_ref_e getADCVoltageReference()
Get the ATtiny43U's ADC voltage reference: VCC or the internal 1.1V reference.
Definition: SparkFun_smol_Power_Board.cpp:252
sfe_power_board_WDT_prescale_e getWatchdogTimerPrescaler()
Get the ATtiny43U's Watchdog Timer prescaler setting.
Definition: SparkFun_smol_Power_Board.cpp:292
bool getPowerDownDurationWDTInts(uint16_t *duration)
Get the Power Board Power-down duration in Watchdog Timer interrupts.
Definition: SparkFun_smol_Power_Board.cpp:335
float measureVCC()
Measure the ATtiny43U's VCC by reading the 1.1V internal reference via the ADC.
Definition: SparkFun_smol_Power_Board.cpp:204
bool setPowerdownDurationWDTInts(uint16_t duration)
Set the Power Board Power-down duration in Watchdog Timer interrupts.
Definition: SparkFun_smol_Power_Board.cpp:312
byte getFirmwareVersion()
Get the Power Board firmware version.
Definition: SparkFun_smol_Power_Board.cpp:373
bool setI2CAddress(byte address)
Change the smôl Power Board AAA's I2C address. You will need to call .begin again using the new addre...
Definition: SparkFun_smol_Power_Board.cpp:74
bool powerDownNow()
Power down the system now. The smôl bus power will be disabled. The ATtiny43U will wake up and turn t...
Definition: SparkFun_smol_Power_Board.cpp:351
bool setADCVoltageReference(sfe_power_board_ADC_ref_e ref)
Set the ATtiny43U's ADC voltage reference to VCC or the internal 1.1V reference.
Definition: SparkFun_smol_Power_Board.cpp:234
byte getI2CAddress()
Just for fun, read back the Power Board's I2C address. This proves that I2C communication is possible...
Definition: SparkFun_smol_Power_Board.cpp:95
float getTemperature()
Read the ATtiny's internal temperature. TO DO: Add temperature calibration / correction functionalit...
Definition: SparkFun_smol_Power_Board.cpp:137
byte computeCRC8(byte data[], byte len)
Given an array of bytes, this calculates the CRC8 for those bytes. From: http://www....
Definition: SparkFun_smol_Power_Board.cpp:395
bool setWatchdogTimerPrescaler(sfe_power_board_WDT_prescale_e prescaler)
Set the ATtiny43U's Watchdog Timer prescaler to set the WDT interrupt rate.
Definition: SparkFun_smol_Power_Board.cpp:274
Definition: SparkFun_smol_Power_Board.h:59
bool begin(byte deviceAddress=SFE_SMOL_POWER_DEFAULT_I2C_ADDRESS, TwoWire &wirePort=Wire)
Begin communication with the SparkFun smôl Power Board.
Definition: SparkFun_smol_Power_Board.cpp:43
smolPowerAAA()
Create an object to communicate with the SparkFun smôl Power Board AAA.
Definition: SparkFun_smol_Power_Board.h:62
float getBatteryVoltage()
Read the ATtiny43U's battery voltage (VBAT).
Definition: SparkFun_smol_Power_Board.cpp:160
Definition: SparkFun_smol_Power_Board.h:71
float getBatteryVoltage()
Definition: SparkFun_smol_Power_Board.cpp:192
smolPowerLiPo()
Create an object to communicate with the SparkFun smôl Power Board LiPo.
Definition: SparkFun_smol_Power_Board.h:74