AskSin++
|
#include <BatterySensor.h>
Public Member Functions | |
uint8_t | current () const |
get current battery voltage - returns always 3.3 | |
bool | critical () const |
check if battery voltage is below critical value - returns always false | |
void | critical (__attribute__((unused)) uint8_t value) |
set critical value - do nothing | |
bool | low () const |
check if battery voltage is below low value - returns always false | |
void | low (__attribute__((unused)) uint8_t value) |
set low value - do nothing | |
void | setIdle () |
called when systems enter idle state | |
void | unsetIdle () |
called when systems returns from idle state | |
void | resetCurrent () |
reset current battery value | |
Fake Battery class - empty implementation of all methods. This class can be used if battery measurement is not needed.
Definition at line 37 of file BatterySensor.h.