Skip to content

Commit

Permalink
clean up more
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandros committed Aug 1, 2014
1 parent 3b53f51 commit 07e4761
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions hello.py
@@ -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!"

0 comments on commit 07e4761

Please sign in to comment.