From 0dc9b8d6242eac1c3fd720d53e2c81aa84812f4d Mon Sep 17 00:00:00 2001 From: Mike Powell Date: Wed, 8 Aug 2018 22:31:55 +0200 Subject: [PATCH] =?UTF-8?q?'switch.py'=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit add -n for no preview --- switch.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/switch.py b/switch.py index 60d4e26..cf14093 100644 --- a/switch.py +++ b/switch.py @@ -13,6 +13,6 @@ GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_UP) while True: input_state = GPIO.input(18) if input_state == False: - subprocess.call(["raspistill", "-w", "1251", "-h", "1039", "-vf", "-hf", "-ISO", "200", "-t", "1","-o", "cam.jpg"]) - os.system(random.choice(shell_list)) - time.sleep(0.2) + 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)