mirror of
https://github.com/pimoroni/grow-python
synced 2025-10-25 15:19:23 +00:00
Update monitor.py to use the new sleep and wake functions
also moved wake one line forward so the display isn't on but not updated while rendering
This commit is contained in:
@@ -1135,11 +1135,11 @@ 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.sleep()
|
||||
display.display(image_blank.convert("RGB"))
|
||||
else:
|
||||
display.set_backlight(GPIO.HIGH)
|
||||
viewcontroller.render()
|
||||
display.wake()
|
||||
display.display(image.convert("RGB"))
|
||||
|
||||
config.set_general(
|
||||
|
||||
Reference in New Issue
Block a user