|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- 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)
- 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(1):
- 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(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)
- 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)
- 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)
-
-
-
-
-
-
-
|