remove inaccurate battery charging indicator
This commit is contained in:
parent
c9cc8cfd89
commit
0d4c7430b1
@ -81,10 +81,13 @@ class SoundslabDisplay:
|
|||||||
battery_display = '{:02.2f}'.format(capacity) + '%'
|
battery_display = '{:02.2f}'.format(capacity) + '%'
|
||||||
battery_display_offset = 80
|
battery_display_offset = 80
|
||||||
print("Battery: voltage: " + str(voltage) + " prev voltage: " + str(previous_voltage) + " capacity: " + str(capacity))
|
print("Battery: voltage: " + str(voltage) + " prev voltage: " + str(previous_voltage) + " capacity: " + str(capacity))
|
||||||
if voltage > previous_voltage:
|
# below method doesn't work - very inaccurate!
|
||||||
# we're probably charging!
|
# should probably track over a longer period of time, which will mean
|
||||||
battery_display = 'Chrg ' + battery_display
|
# it's harder to come up with a valid "charging or not" decision
|
||||||
battery_display_offset = 130
|
# if voltage > previous_voltage:
|
||||||
|
# # we're probably charging!
|
||||||
|
# battery_display = 'Chrg ' + battery_display
|
||||||
|
# battery_display_offset = 130
|
||||||
overlay.text((self.screen_size[0] - battery_display_offset, 0), battery_display, font=font, fill=self.fg_color)
|
overlay.text((self.screen_size[0] - battery_display_offset, 0), battery_display, font=font, fill=self.fg_color)
|
||||||
|
|
||||||
# add progress meter
|
# add progress meter
|
||||||
|
Loading…
Reference in New Issue
Block a user