Battery indicator (console or LED)

Hi, I am getting a le frite and plan to run archlinux. I bought a ups and wanted to know if there are any tools that would allow me to see the battery status or if that information would be in the same file as with any laptop:

cat /sys/class/power_supply/BAT0/capacity

Also, is there a way to use leds as indicators or would I have to figure that out on the UPS board itself? I got a makerfocus for raspberry pi

The device seems to communicate over UART as well as over BCM GPIO18 (Pin 12). For UART, you can hook up the pins to UART_A on the Le Potato and use the libretech-wiring-tool to enable UART_A. Not sure the protocol for BCM GPIO18 since it’s not described on the Amazon page.

1 Like