You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
241 B
Python
18 lines
241 B
Python
3 years ago
|
#!/bin/python3
|
||
|
|
||
|
import RPi.GPIO as GPIO
|
||
|
from time import sleep
|
||
|
|
||
|
GPIO.setwarnings(False)
|
||
|
|
||
|
GPIO.setmode(GPIO.BCM)
|
||
|
GPIO.setup(14, GPIO.OUT)
|
||
|
|
||
|
GPIO.output(14, 1)
|
||
|
sleep(2)
|
||
|
GPIO.output(14, 0)
|
||
|
sleep(2)
|
||
|
GPIO.output(14, 1)
|
||
|
sleep(2)
|
||
|
GPIO.output(14, 0)
|