Skip to content

Instantly share code, notes, and snippets.

@yohanes yohanes/click.py
Created Jan 28, 2016

Embed
What would you like to do?
Switch a button
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
PIN=18
GPIO.setup(PIN, GPIO.OUT)
GPIO.output(PIN, 1)
time.sleep(0.1)
GPIO.output(PIN, 0)
GPIO.cleanup()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.