mirror of
https://github.com/pimoroni/grow-python
synced 2025-10-25 15:19:23 +00:00
Merge pull request #28 from tomjn/patch-1
Turn off Backlight when the screen is black/blank
This commit is contained in:
@@ -1135,10 +1135,11 @@ Low Light Value {:.2f}
|
||||
viewcontroller.update()
|
||||
|
||||
if light_level_low and config.get_general().get("black_screen_when_light_low"):
|
||||
display.sleep()
|
||||
display.display(image_blank.convert("RGB"))
|
||||
|
||||
else:
|
||||
viewcontroller.render()
|
||||
display.wake()
|
||||
display.display(image.convert("RGB"))
|
||||
|
||||
config.set_general(
|
||||
|
||||
@@ -30,7 +30,7 @@ python_requires = >= 3
|
||||
packages = grow
|
||||
install_requires =
|
||||
ltr559
|
||||
st7735
|
||||
st7735>=0.0.5
|
||||
pyyaml
|
||||
fonts
|
||||
font-roboto
|
||||
|
||||
Reference in New Issue
Block a user