13 lines
211 B
Python
13 lines
211 B
Python
import RPi.GPIO as GPIO
|
|
import time
|
|
|
|
GPIO.setwarnings(False)
|
|
GPIO.setmode(GPIO.BCM)
|
|
GPIO.setup(22, GPIO.OUT)
|
|
|
|
while True:
|
|
GPIO.output(22, True)
|
|
time.sleep(1)
|
|
GPIO.output(22, False)
|
|
time.sleep(1)
|