Android app for cutting off charging at a certain level, by communicating with external hardware.
See my blog post.
It's an extremely simple app which waits for the charge to reach a predetermined level then flashes the torch to tell the charger to cut power.
Firmware repo: https://github.com/bengineer19/BatCap_firmware