Add capture full on full off

This commit is contained in:
Nicolas Bertrand 2024-11-15 14:50:04 +01:00
parent 0acb2f0a0c
commit 3a63449c83
1 changed files with 9 additions and 0 deletions

View File

@ -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