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:
parent
37e805a44a
commit
d535b8b16c
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue