Add capture full on full off
This commit is contained in:
parent
0acb2f0a0c
commit
3a63449c83
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue