-
-
Save anonymous/3abeb0cdb282ea2da835baa6c299a0bf to your computer and use it in GitHub Desktop.
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
import pifacedigitalio as p | |
from time import sleep | |
p.init() | |
if(p.digital_read(0)): | |
p.digital_write(0,1) #turn on | |
sleep(1) | |
p.digital_write(0,0) #turn off | |
sleep(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment