Created
May 2, 2015 16:21
-
-
Save agusmakmun/418a5d63086191e6a4e0 to your computer and use it in GitHub Desktop.
Raspberry Pi: GPIO LED on & off
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import RPi.GPIO as GPIO | |
GPIO.setmode(GPIO.BCM) | |
GPIO.cleanup() | |
GPIO.setwarning(False) | |
GPIO.setup(17, GPIO.OUT) | |
GPIO.setup(27, GPIO.OUT) | |
print "Light On" | |
GPIO.output(17, GPIO.HIGH) | |
GPIO.output(27, GPIO.HIGH) | |
#more: http://python.web.id/raspberry-pi-gpio-led-on-off/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment