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 16:56:58 +00:00
|
|
|
pins = [8,10,12,14,18,20,22,24]
|
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 16:56:58 +00:00
|
|
|
GPIO.output(pin, GPIO.HIGH)
|
2022-07-06 16:34:46 +00:00
|
|
|
GPIO.cleanup
|