mirror of https://github.com/espruino/BangleApps
More intuitive bat level
parent
911eb805fd
commit
861b9c530d
|
@ -9,7 +9,7 @@ It looks like an analog clock, but its not! It shows the time digital - check th
|
|||
|
||||
## Help
|
||||
The red hand shows the number of steps (0 = 0°, 2.5k = 90°, 5k = 180°, ...) and the
|
||||
black one the battery level (100% = 0°, 75% = 90°, 50% = 180°, ...) as also shown
|
||||
black one the battery level (100% = 0°, 75% = 270°, 50% = 180°, ...) as also shown
|
||||
in the following image:
|
||||
|
||||

|
||||
|
|
|
@ -82,7 +82,7 @@ function drawHands() {
|
|||
var drawStepsHand = g.drawRotRect.bind(g,5,12,R-24);
|
||||
|
||||
// Draw hands
|
||||
var bat = 100 - E.getBattery();
|
||||
var bat = E.getBattery();
|
||||
var maxBat = 100;
|
||||
g.setColor(g.theme.fg);
|
||||
drawBatteryHand(parseInt(bat*360/maxBat));
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 63 KiB |
Loading…
Reference in New Issue