Created
February 2, 2014 23:30
-
-
Save ianjosephwilson/8776674 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
from time import sleep | |
from Arduino import Arduino | |
import logging | |
import sys | |
board = Arduino(port='/dev/ttyACM0') | |
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG) | |
def main(): | |
board.pinMode(13, "OUTPUT") | |
while 1: | |
board.digitalWrite(13, "HIGH") | |
sleep(1) | |
board.digitalWrite(13, "LOW") | |
sleep(1) | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment