2022-07-06 16:34:46 +00:00
|
|
|
import time
|
|
|
|
import os
|
|
|
|
import RPi.GPIO as GPIO
|
|
|
|
|
|
|
|
|
2022-07-06 16:57:12 +00:00
|
|
|
GPIO.setmode(GPIO.BOARD)
|
2022-07-06 16:34:46 +00:00
|
|
|
|
2022-07-06 17:03:19 +00:00
|
|
|
pins = [8,10,12,16,18,22,24,26]
|
2022-07-06 16:41:32 +00:00
|
|
|
|
2022-07-06 16:56:58 +00:00
|
|
|
for pin in pins:
|
2022-07-06 16:57:48 +00:00
|
|
|
print(pin)
|
2022-07-06 16:59:29 +00:00
|
|
|
GPIO.setup(pin, GPIO.OUT)
|
2022-07-06 17:06:46 +00:00
|
|
|
GPIO.output(pin, True)
|
2022-07-06 17:03:19 +00:00
|
|
|
time.sleep(float(0.5))
|
2022-07-06 17:06:46 +00:00
|
|
|
GPIO.output(pin, False)
|
2022-07-06 16:34:46 +00:00
|
|
|
GPIO.cleanup
|