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 17:11:06 +00:00
|
|
|
GPIO.setwarnings(False)
|
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 17:11:06 +00:00
|
|
|
GPIO.setup(pin, GPIO.OUT)
|
2022-07-06 17:12:51 +00:00
|
|
|
GPIO.output(pin, GPIO.LOW)
|
2022-07-06 17:16:00 +00:00
|
|
|
GPIO.cleanup()
|