This commit is contained in:
elektroll 2018-08-11 20:43:31 +02:00
parent 3b7c0d54b2
commit 89f1295eb4
5 changed files with 2 additions and 13 deletions

View file

@ -13,11 +13,6 @@ GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_UP)
while True:
input_state = GPIO.input(18)
if input_state == False:
<<<<<<< HEAD
subprocess.call(["raspistill","-n", "-w", "1251", "-h", "1039", "-ISO", "200", "-t", "1","-o", "cam.jpg"])
=======
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"])
>>>>>>> 45f87ca66a1f5f1055aadf6095918a1859c3e690
os.system(random.choice(shell_list))
time.sleep(0.2)