'switch.py' ändern
add touch 0.jpg to create a empty jpg, to count filename
This commit is contained in:
parent
0dc9b8d624
commit
3eda39a3d7
1 changed files with 1 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_UP)
|
|||
while True:
|
||||
input_state = GPIO.input(18)
|
||||
if input_state == False:
|
||||
subprocess.call(["touch","/home/pi/DCIM/0.jpg"])
|
||||
subprocess.call(["raspistill","-n", "-w", "1251", "-h", "1039", "-vf", "-hf", "-ISO", "200", "-t", "1","-o", "cam.jpg"])
|
||||
os.system(random.choice(shell_list))
|
||||
time.sleep(0.2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue