Battery autonomy test screen: pick a workload, check readiness, review the last run.
More...
|
| #define | ACCENT gfx_rgb(255, 120, 0) /* Stats identity colour (see stats_screen) */ |
| #define | DIM gfx_rgb(110, 110, 110) |
| #define | WARN gfx_rgb(255, 180, 0) |
| #define | OKC gfx_rgb(0, 255, 0) |
| #define | PAD_X 6 |
| #define | TITLE_Y (STATUS_BAR_H + 4) |
| #define | TYPE_Y 34 /* workload picker */ |
| #define | SONG_Y 47 /* "Select song" row (Jack/BT), above the speaker row */ |
| #define | SINK_Y 60 /* "Connect speaker" row (BT) */ |
| #define | READY_Y 75 /* Batt line — this block down (through "SD dump") is fixed on screen */ |
| #define | LAST_Y 89 |
| #define | L1_Y 100 |
| #define | L2_Y 111 |
| #define | L3_Y 122 |
| #define | L4_Y 133 |
| #define | BTN_Y 150 /* START and RE-DUMP SD share this row, side by side */ |
| #define | BTN_H 15 |
| #define | BTN_GAP 6 /* horizontal gap between the two buttons */ |
| #define | NAME_MAX 22 /* device/track names are truncated to fit a centred "< name >" row */ |
| #define | READY_SOC_PCT 99.0f /* a run is only meaningful starting from a full cell */ |
| #define | N_TYPES (int)(sizeof k_types / sizeof k_types[0]) |
Battery autonomy test screen: pick a workload, check readiness, review the last run.
Layout is fixed: the picker and the two setup rows sit above a fixed telemetry block (Batt + last run) and a shared button row. UP/DOWN cycles focus but skips rows that don't apply to the mode and buttons that are greyed out, so the cursor never lands on something it can't act on. The orange < > chevrons flank whichever row is focused.
- Type : workload picker, the three modes on one line (LEFT/RIGHT cycles Idle/Jack/BT).
- Track : "Select song" — Jack/BT open the library to pick the song; shows the playing track.
- Sink : "Connect speaker" — BT opens the Bluetooth screen; shows the connected device. Both setup rows are always drawn (dim when the mode doesn't use them).
- Start : arm the run (enabled from a full cell off external power, with a live Jack/BT stream).
- Re-dump : re-export the last run's CSV to the SD card (enabled with a stored run + mounted card).
- Note
- Développé avec l'assistance de Claude Opus 4.8 (Anthropic), sous la direction de Y. Dos Santos : spécification, revue et validation sur cible par l'auteur.