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.
14 lines
195 B
Python
14 lines
195 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.setup(15, GPIO.IN)
|
||
|
|
||
|
GPIO.output(14, GPIO.input(15))
|
||
|
|