Commit dffe42eb authored by Markus Seidl's avatar Markus Seidl

Added display on/off python scripts which toggle a specific pin.

parent f1ed91e9
#!/usr/bin/python
import RPi.GPIO as GPIO
import time
PIN=40
GPIO.setmode(GPIO.BOARD)
GPIO.setup(PIN, GPIO.OUT)
GPIO.output(PIN, GPIO.HIGH)
GPIO.output(PIN, GPIO.LOW)
time.sleep(5)
GPIO.output(PIN, GPIO.HIGH)
#!/usr/bin/python
import RPi.GPIO as GPIO
import time
PIN=40
GPIO.setmode(GPIO.BOARD)
GPIO.setup(PIN, GPIO.OUT)
GPIO.output(PIN, GPIO.HIGH)
GPIO.output(PIN, GPIO.LOW)
time.sleep(0.1)
GPIO.output(PIN, GPIO.HIGH)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment