From d3a23e28059dc1da64bca8a222809b3391216fcc Mon Sep 17 00:00:00 2001 From: Alex Volkmann Date: Fri, 21 Sep 2018 10:19:39 +0000 Subject: [PATCH] Update 'gpio_test.py' --- gpio_test.py | 87 +++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 82 insertions(+), 5 deletions(-) diff --git a/gpio_test.py b/gpio_test.py index bf6495e..9ceeafc 100644 --- a/gpio_test.py +++ b/gpio_test.py @@ -11,8 +11,24 @@ GPIO.setup(24, GPIO.OUT) GPIO.setup(25, GPIO.OUT) GPIO.setup(8, GPIO.OUT) GPIO.setup(7, GPIO.OUT) +GPIO.setup(12, GPIO.OUT) +GPIO.setup(16, GPIO.OUT) +GPIO.setup(20, GPIO.OUT) +GPIO.setup(21, GPIO.OUT) +GPIO.setup(2, GPIO.OUT) +GPIO.setup(3, GPIO.OUT) +GPIO.setup(4, GPIO.OUT) +GPIO.setup(17, GPIO.OUT) +GPIO.setup(27, GPIO.OUT) +GPIO.setup(22, GPIO.OUT) +GPIO.setup(10, GPIO.OUT) +GPIO.setup(9, GPIO.OUT) +GPIO.setup(11, GPIO.OUT) +GPIO.setup(5, GPIO.OUT) +GPIO.setup(6, GPIO.OUT) +GPIO.setup(13, GPIO.OUT) -for i in range(5): +for i in range(1): GPIO.output(14, GPIO.HIGH) time.sleep(1) GPIO.output(15, GPIO.HIGH) @@ -29,6 +45,39 @@ for i in range(5): time.sleep(1) GPIO.output(7, GPIO.HIGH) time.sleep(1) + GPIO.output(12, GPIO.HIGH) + time.sleep(1) + GPIO.output(16, GPIO.HIGH) + time.sleep(1) + GPIO.output(20, GPIO.HIGH) + time.sleep(1) + GPIO.output(21, GPIO.HIGH) + time.sleep(1) + GPIO.output(2, GPIO.HIGH) + time.sleep(1) + GPIO.output(3, GPIO.HIGH) + time.sleep(1) + GPIO.output(4, GPIO.HIGH) + time.sleep(1) + GPIO.output(17, GPIO.HIGH) + time.sleep(1) + GPIO.output(27, GPIO.HIGH) + time.sleep(1) + GPIO.output(22, GPIO.HIGH) + time.sleep(1) + GPIO.output(10, GPIO.HIGH) + time.sleep(1) + GPIO.output(9, GPIO.HIGH) + time.sleep(1) + GPIO.output(11, GPIO.HIGH) + time.sleep(1) + GPIO.output(5, GPIO.HIGH) + time.sleep(1) + GPIO.output(6, GPIO.HIGH) + time.sleep(1) + GPIO.output(13, GPIO.HIGH) + time.sleep(1) + GPIO.output(14, GPIO.LOW) time.sleep(1) GPIO.output(15, GPIO.LOW) @@ -44,10 +93,38 @@ for i in range(5): GPIO.output(8, GPIO.LOW) time.sleep(1) GPIO.output(7, GPIO.LOW) - - - - + time.sleep(1) + GPIO.output(12, GPIO.LOW) + time.sleep(1) + GPIO.output(16, GPIO.LOW) + time.sleep(1) + GPIO.output(20, GPIO.LOW) + time.sleep(1) + GPIO.output(21, GPIO.LOW) + time.sleep(1) + GPIO.output(2, GPIO.LOW) + time.sleep(1) + GPIO.output(3, GPIO.LOW) + time.sleep(1) + GPIO.output(4, GPIO.LOW) + time.sleep(1) + GPIO.output(17, GPIO.LOW) + time.sleep(1) + GPIO.output(27, GPIO.LOW) + time.sleep(1) + GPIO.output(22, GPIO.LOW) + time.sleep(1) + GPIO.output(10, GPIO.LOW) + time.sleep(1) + GPIO.output(9, GPIO.LOW) + time.sleep(1) + GPIO.output(11, GPIO.LOW) + time.sleep(1) + GPIO.output(5, GPIO.LOW) + time.sleep(1) + GPIO.output(6, GPIO.LOW) + time.sleep(1) + GPIO.output(13, GPIO.LOW)