Created
October 4, 2011 13:06
-
-
Save koo5/1261599 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
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