From 0287117d86f04c1305d1509463a292649132804d Mon Sep 17 00:00:00 2001 From: Tom J Nowell Date: Thu, 27 Jul 2023 13:31:31 +0100 Subject: [PATCH] turn off the backlight when setting the screen to blank --- examples/monitor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/monitor.py b/examples/monitor.py index 02f97f6..dbd1425 100644 --- a/examples/monitor.py +++ b/examples/monitor.py @@ -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"))