This repository has been archived by the owner. It is now read-only.
Repository has been moved! https://postmarketos.org/move.html#/charging-sdl 🚚 🚚 🚚
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.travis
test
.editorconfig
.gitignore
.travis.yml
LICENSE
README.md
atlas.c
atlas.h
charging.c
draw.c
draw.h
makefile

README.md

charging-sdl

build status

Charging screen for the initramfs.

photo

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

  1. cd charging-sdl
  2. make or if you want fancy features make LIBBATTERY=true

run

  • without text ./charging_sdl -t
  • with text ./charging_sdl -tpcf path/to/font

usage

  • -t test mode, keep the application open until explicitly closed and is not in full screen
  • -p display the percent charged the battery is
  • -c display current when charging (if available - see build section)
  • -o display a square, and move it randomly around the screen to prevent burn-in on OLED screens
  • -f font used to display all text