From 2b0c8aefd73f29fce3796cf095228be8a5f81726 Mon Sep 17 00:00:00 2001 From: Tom J Nowell Date: Mon, 7 Aug 2023 15:32:05 +0100 Subject: [PATCH] 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 --- examples/monitor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/monitor.py b/examples/monitor.py index dbd1425..9adb8dd 100644 --- a/examples/monitor.py +++ b/examples/monitor.py @@ -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(