![]() |
MatrixMiniR4 1.1.5
Matrix Mini R4 Arduino Library API Documentation
|
Class for managing battery power settings and retrieval. More...
#include <MiniR4Power.h>
Public Member Functions | |
MiniR4Power () | |
bool | setBattCell (uint8_t cell) |
Sets the battery parameters based on the number of cells. | |
float | getBattVoltage (void) |
Retrieves the current battery voltage. | |
float | getBattPercentage (void) |
Retrieves the current battery percentage. | |
Class for managing battery power settings and retrieval.
This class provides methods to set battery parameters based on the number of cells and to retrieve the current battery voltage and percentage.
Definition at line 17 of file MiniR4Power.h.
|
inline |
Definition at line 20 of file MiniR4Power.h.
|
inline |
Retrieves the current battery percentage.
Definition at line 59 of file MiniR4Power.h.
|
inline |
Retrieves the current battery voltage.
Definition at line 45 of file MiniR4Power.h.
|
inline |
Sets the battery parameters based on the number of cells.
cell | The number of 18650 battery cells (2-6). |
Definition at line 28 of file MiniR4Power.h.