Skip to content

Instantly share code, notes, and snippets.

@ianjosephwilson
Created February 2, 2014 23:30
Show Gist options
  • Save ianjosephwilson/8776674 to your computer and use it in GitHub Desktop.
Save ianjosephwilson/8776674 to your computer and use it in GitHub Desktop.
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