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