Skip to content

Instantly share code, notes, and snippets.

@koo5
Created October 4, 2011 13:06
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 koo5/1261599 to your computer and use it in GitHub Desktop.
Save koo5/1261599 to your computer and use it in GitHub Desktop.
StandardFirmata_2_2_forUNO_0_3
pyfirmata
set baudrate 57600 in sketch & pyfirmata.py
set port name in util.py
>>> import pyfirmata
>>> from util import get_the_board
>>> board=get_the_board()
>>> board.firmata_version
>>> print board
Board /dev/ttyACM0 on /dev/ttyACM0
>>> print board.firmware
StandardFirmata_2_2_forUNO_0_3
>>> print board.firmware_version
(2, 2)
>>> board.digital[13].write(1)
>>> board.digital[13].write(0)
>>> board.digital[13].write(1)
>>> board.digital[13].write(0)
:-)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment