From ed54c51c2ac53ed8bac5569caa9c00bd90d7404f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Wed, 6 Jul 2022 19:19:17 +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 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test.py b/test.py index e517c30..6b614b5 100644 --- a/test.py +++ b/test.py @@ -7,4 +7,9 @@ pins = [8,10,12,16,18,22,24,26] for pin in pins: print(pin) relay = gpiozero.OutputDevice(pin, active_high=False, initial_value=False) - relay.on() \ No newline at end of file + relay.on() + +for pin in pins: + print(pin) + relay = gpiozero.OutputDevice(pin, active_high=False, initial_value=False) + relay.off() \ No newline at end of file