From bf433a64e99bdd35cc421a2c79228231e468e151 Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 18 Sep 2018 11:07:37 +0200 Subject: [PATCH] 1.Version vom Script erstellt. --- gpio_test.py | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 gpio_test.py diff --git a/gpio_test.py b/gpio_test.py new file mode 100644 index 0000000..bf6495e --- /dev/null +++ b/gpio_test.py @@ -0,0 +1,57 @@ +import RPi.GPIO as GPIO +import time + +GPIO.setmode(GPIO.BCM) + +GPIO.setup(14, GPIO.OUT) +GPIO.setup(15, GPIO.OUT) +GPIO.setup(18, GPIO.OUT) +GPIO.setup(23, GPIO.OUT) +GPIO.setup(24, GPIO.OUT) +GPIO.setup(25, GPIO.OUT) +GPIO.setup(8, GPIO.OUT) +GPIO.setup(7, GPIO.OUT) + +for i in range(5): + GPIO.output(14, GPIO.HIGH) + time.sleep(1) + GPIO.output(15, GPIO.HIGH) + time.sleep(1) + GPIO.output(18, GPIO.HIGH) + time.sleep(1) + GPIO.output(23, GPIO.HIGH) + time.sleep(1) + GPIO.output(24, GPIO.HIGH) + time.sleep(1) + GPIO.output(25, GPIO.HIGH) + time.sleep(1) + GPIO.output(8, GPIO.HIGH) + time.sleep(1) + GPIO.output(7, GPIO.HIGH) + time.sleep(1) + GPIO.output(14, GPIO.LOW) + time.sleep(1) + GPIO.output(15, GPIO.LOW) + time.sleep(1) + GPIO.output(18, GPIO.LOW) + time.sleep(1) + GPIO.output(23, GPIO.LOW) + time.sleep(1) + GPIO.output(24, GPIO.LOW) + time.sleep(1) + GPIO.output(25, GPIO.LOW) + time.sleep(1) + GPIO.output(8, GPIO.LOW) + time.sleep(1) + GPIO.output(7, GPIO.LOW) + + + + + + + + + + +