From 3a63449c83ba0a220bbccc53886922be14a737ea Mon Sep 17 00:00:00 2001 From: Nicolas Bertrand Date: Fri, 15 Nov 2024 14:50:04 +0100 Subject: [PATCH] Add capture full on full off --- scanner.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scanner.py b/scanner.py index 436e875..0697de4 100644 --- a/scanner.py +++ b/scanner.py @@ -67,7 +67,16 @@ def scan(output_dir: str): print(f'Turn off {led}') if count == len(config.LEDS_UUIDS) -1: + + # capture with all leds ON OFF + gpio_leds.on() + img = join(output_dir, f'all_on') + capture(camera, img) + gpio_leds.off() + img = join(output_dir, f'all_off') + capture(camera, img) + camera.exit() yield led