mirror of
https://github.com/pimoroni/grow-python
synced 2025-10-25 15:19:23 +00:00
turn off the backlight when setting the screen to blank
This commit is contained in:
@@ -1135,9 +1135,10 @@ Low Light Value {:.2f}
|
||||
viewcontroller.update()
|
||||
|
||||
if light_level_low and config.get_general().get("black_screen_when_light_low"):
|
||||
display.set_backlight(GPIO.LOW)
|
||||
display.display(image_blank.convert("RGB"))
|
||||
|
||||
else:
|
||||
display.set_backlight(GPIO.HIGH)
|
||||
viewcontroller.render()
|
||||
display.display(image.convert("RGB"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user