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()
|
viewcontroller.update()
|
||||||
|
|
||||||
if light_level_low and config.get_general().get("black_screen_when_light_low"):
|
if light_level_low and config.get_general().get("black_screen_when_light_low"):
|
||||||
|
display.sleep()
|
||||||
display.display(image_blank.convert("RGB"))
|
display.display(image_blank.convert("RGB"))
|
||||||
|
|
||||||
else:
|
else:
|
||||||
viewcontroller.render()
|
viewcontroller.render()
|
||||||
|
display.wake()
|
||||||
display.display(image.convert("RGB"))
|
display.display(image.convert("RGB"))
|
||||||
|
|
||||||
config.set_general(
|
config.set_general(
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ python_requires = >= 3
|
|||||||
packages = grow
|
packages = grow
|
||||||
install_requires =
|
install_requires =
|
||||||
ltr559
|
ltr559
|
||||||
st7735
|
st7735>=0.0.5
|
||||||
pyyaml
|
pyyaml
|
||||||
fonts
|
fonts
|
||||||
font-roboto
|
font-roboto
|
||||||
|
|||||||
Reference in New Issue
Block a user