Merge pull request #28 from tomjn/patch-1

Turn off Backlight when the screen is black/blank
This commit is contained in:
Philip Howard
2023-09-07 10:44:53 +01:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -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(

View File

@@ -30,7 +30,7 @@ python_requires = >= 3
packages = grow
install_requires =
ltr559
st7735
st7735>=0.0.5
pyyaml
fonts
font-roboto