From e946dbb190941c4227f33c1f4c9981ad52b21215 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Wed, 6 Jul 2022 19:44:02 +0200 Subject: [PATCH] changed code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- test.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/test.py b/test.py index 62fa5c4..967b530 100644 --- a/test.py +++ b/test.py @@ -4,9 +4,14 @@ import gpiozero pins = [14,15,18,23,24,25,8,7,8,25,24,23,18,15,15] -for pin in pins: - print(pin) - relay = gpiozero.OutputDevice(pin, active_high=False, initial_value=False) - relay.on() - time.sleep(1) - relay.off() \ No newline at end of file +# for pin in pins: +# print(pin) +# relay = gpiozero.OutputDevice(pin, active_high=False, initial_value=False) +# relay.on() +# time.sleep(1) +# relay.off() + +relay = gpiozero.OutputDevice(p14, active_high=False, initial_value=False) +relay.on() +time.sleep(30) +relay.off() \ No newline at end of file