16#define BATTERY_CELLS_MAX 14
void battery_screen_set(const battery_state_t *b)
What the balance lead says. NULL, or valid false, means nothing is on.
Definition battery_screen.c:118
const ui_screen_t * battery_screen(void)
The BATTERY screen.
Definition battery_screen.c:534
int battery_screen_text_lines(const char *text, bool note)
The lines text takes in the right card's column: the verdict's reason in the 12 x 24 face (the card s...
Definition battery_screen.c:376
void battery_invalidate(void)
Definition battery_screen.c:103
const gfx_font_t * battery_screen_cells_font(int cells)
The face of the cells row under the plot for a pack of cells: 12 x 24 while a voltage ("3....
Definition battery_screen.c:181
float battery_screen_spread_mv(void)
The widest gap between any two cells.
Definition battery_screen.c:147
#define BATTERY_CELLS_MAX
The most cells a pack is drawn with.
Definition battery_screen.h:16
gfx: an RGB565 (16-bit red, green, blue) rasteriser with no dependencies.
What the balance lead says of a pack.
Definition battery_screen.h:19
float capacity_mah
Definition battery_screen.h:23
float milliohms[BATTERY_CELLS_MAX]
Definition battery_screen.h:22
int cells
Definition battery_screen.h:20
float volts[BATTERY_CELLS_MAX]
Definition battery_screen.h:21
float drawn_mah
Definition battery_screen.h:24
bool valid
Definition battery_screen.h:25
Definition ui_screen.h:68