From 1ecbbc6f872e4eea2b4492cf56c8dd7155fc20a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Wed, 6 Jul 2022 18:34:46 +0200 Subject: [PATCH] added first test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- requirements.txt | 1 + test.py | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ + diff --git a/test.py b/test.py index e69de29..2bbdebe 100644 --- a/test.py +++ b/test.py @@ -0,0 +1,16 @@ +import time +import os +import RPi.GPIO as GPIO + + +GPIO.setmode(GPIO.BCM) + +pins = [8,10,12,14,18,20,22,24] + +for pin in pins: + GPIO.setup(pin, GPIO.OUT) + GPIO.output(pin, GPIO.LOW) + time.sleep(0.001) + GPIO.output(pin, GPIO.HIGH) + time.sleep(0.001) +GPIO.cleanup \ No newline at end of file