Skip to content

Instantly share code, notes, and snippets.

@theycallmeswift
Created April 16, 2013 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theycallmeswift/5397604 to your computer and use it in GitHub Desktop.
Save theycallmeswift/5397604 to your computer and use it in GitHub Desktop.
from BreakfastSerial import Arduino, Led, Button
board = Arduino()
led = Led(board, 13)
button = Button(board, 8)
button.down(led.toggle)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment