[2]Binary 🔋battery level

by Ricardo Fernández Serrata

Version 4 (April 18, 2022)

Download (106 downloads)

Shows a notification where the batt level is shown in the most binary way. It's Octal, on a scale from 0 to 63 inclusive (0o00 to 0o77) like some retro devices.

I tried a scale from 0 to 255, but that requires upscaling that gives a false sense of precision, so I decided to downscale 100 to 63 (127 is still larger than 100, just like 255)

I tried hexadecimal, but it doesn't have good "symmetry" when expressing 6bit values (the max value is 0x3F). The only aesthetic choices are base 2, 4, or 8, but the most efficient is 8.

To save energy, I precomputed the array using this expression `(B / x >> 3) ++ (B / x & 7)` where x = 1.5873015873015872

LICENSE: https://unlicense.org/

4.0 average rating from 1 reviews

5 stars
0
4 stars
1
3 stars
0
2 stars
0
1 star
0
Reports
0

Rate and review within the app in the Community section.