1
0
Fork 0

k9: watch.py.in: Fix backlight

Currently the backlight is permanently on at its lowest level. The
backlight is so dim that this is almost impossible to detect. I only
found it when lying in a field in total darkness and observing that the
screen wasn't quite as black as I expected.

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
This commit is contained in:
Daniel Thompson 2020-08-15 16:55:56 +01:00
parent 37e805a44a
commit d535b8b16c

View file

@ -43,6 +43,9 @@ class Backlight(object):
self.set(level)
def set(self, level):
"""K9 backlight is very weak so we avoid lo in its own because it is
pointless.
"""
hi = 1
mid = 1
lo = 0
@ -54,6 +57,8 @@ class Backlight(object):
hi = 0
elif level == 1:
mid = 0
else:
lo = 1
self.hi(hi)
self.mid(mid)