Code: Select all
#!/usr/bin/python
import time
import RPi.GPIO as GPIO
GPIO.setup(11, GPIO.IN)
while True:
mybutton = GPIO.input(11)
if mybutton == False:
print "giggle"
time.sleep(.2)
Please help
Code: Select all
#!/usr/bin/python
import time
import RPi.GPIO as GPIO
GPIO.setup(11, GPIO.IN)
while True:
mybutton = GPIO.input(11)
if mybutton == False:
print "giggle"
time.sleep(.2)
Code: Select all
#!/usr/bin/python
import time
import RPi.GPIO as GPIO
GPIO.setup(11, GPIO.IN)
while True:
mybutton = GPIO.input(11)
if mybutton == False:
print "giggle"
time.sleep(.2)
Code: Select all
#!/usr/bin/python
import time
import RPi.GPIO as GPIO
GPIO.setup(11, GPIO.IN)
while True:
mybutton = GPIO.input(11)
if mybutton == False:
print "giggle"
time.sleep(.2)