Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
alexandros
committed
Aug 1, 2014
1 parent
3b53f51
commit 07e4761
Showing
1 changed file
with
1 addition
and
24 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,3 @@ | ||
#!/usr/bin/python | ||
|
||
import RPi.GPIO as GPIO | ||
from time import sleep | ||
|
||
# Needs to be BCM. GPIO.BOARD lets you address GPIO ports by periperal | ||
# connector pin number, and the LED GPIO isn't on the connector | ||
GPIO.setmode(GPIO.BCM) | ||
|
||
GPIO.cleanup() | ||
|
||
# set up GPIO output channel | ||
GPIO.setup(16, GPIO.OUT) | ||
|
||
while(1): | ||
# Turn On | ||
GPIO.output(16, GPIO.LOW) | ||
|
||
# Wait a bit | ||
sleep(1000) | ||
|
||
# Turn Off | ||
GPIO.output(16, GPIO.HIGH) | ||
|
||
# Wait a bit | ||
sleep(1000) | ||
print "hello python!" |