charging-sdl
Charging screen for the initramfs.
TODOs
- display whether or not the device is charging
- speed up the font atlas rendering
- display charging type
- display battery temperature
- show battery voltage
build
cd charging-sdlmakeor if you want fancy featuresmake LIBBATTERY=true
run
- without text
./charging_sdl -t - with text
./charging_sdl -tpcf path/to/font
usage
-ttest mode, keep the application open until explicitly closed and is not in full screen-pdisplay the percent charged the battery is-cdisplay current when charging (if available - see build section)-odisplay a square, and move it randomly around the screen to prevent burn-in on OLED screens-ffont used to display all text
