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