Source

pyptug / pyfirmata / presentation / index.html

Full commit
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><title>No Processing required: PyFirmata + Arduinos</title><meta name="generator" content="Hovercraft! 1.0 http://regebro.github.com/hovercraft"></meta><link rel="stylesheet" href="css/hovercraft.css" media="all"></link><link rel="stylesheet" href="css/impressConsole.css" media="all"></link><link rel="stylesheet" href="css/highlight.css" media="all"></link></head><body class="impress-not-supported"><div id="impress"><div class="step" step="0" data-x="0" data-y="0"><p class="center"><strong>PYPTUG</strong></p><p class="center"><strong>No Processing required: PyFirmata + Arduinos</strong></p><p class="center">Francois Dion - <a href="mailto:francois.dion@gmail.com">francois.dion@gmail.com</a> - @f_dion</p></div><div class="step" step="1" data-x="1600" data-y="0"><blockquote><p><strong>MIDI</strong></p></blockquote><p>MIDI (/&#x2C8;m&#x26A;di/; short for Musical Instrument Digital Interface) is a technical standard that describes a protocol, digital interface and connectors and allows a wide variety of electronic musical instruments, computers and other related devices to connect and communicate with one another.[1]</p><p><a href="http://www.nime.org/proceedings/2009/nime2009_125.pdf">http://www.nime.org/proceedings/2009/nime2009_125.pdf</a></p></div><div class="step" step="2" data-x="3200" data-y="0"><blockquote><p><strong>Firmata</strong></p></blockquote><p>Firmata is a generic protocol for communicating with microcontrollers from software on a host computer. The central goal is to make the microcontroller an extension of the programming environment on the host computer in a manner that feels natural in that programming environment. It was designed to be open and flexible so that any programming environment can support it, and simple to implement both on the microcontroller and the host computer to ensure a wide range of implementations.</p></div><div class="step" step="3" data-x="4800" data-y="0"><blockquote><p><strong>Python</strong></p><p><strong>Pyfirmata</strong></p></blockquote><p>Python interface for the Firmata (<a href="http://firmata.org/">http://firmata.org/</a>) protocol. It is compliant with Firmata 2.1. Any help with updating to 2.2 is welcome. Especially the Capability Query and Pin State Query features, as these are quite useful for using it on different boards.</p></div><div class="step" step="4" data-x="6400" data-y="0"><blockquote><p><strong>Hardware</strong></p><p><strong>Arduino</strong></p></blockquote><p>Standard Firmata (from IDE)</p><blockquote><p><strong>PIC</strong></p></blockquote><p><a href="http://firmata.svn.sourceforge.net/viewvc/firmata/picduino/trunk/">http://firmata.svn.sourceforge.net/viewvc/firmata/picduino/trunk/</a></p><blockquote><p><strong>Propeller</strong></p></blockquote><p>Under development</p></div><div class="step" step="5" data-x="8000" data-y="0"><blockquote><p><strong>Install</strong></p></blockquote><p>$ sudo pip install pyfirmata</p><p>or</p><p>$ sudo pip install serial</p><p>$ sudo python setup.py install</p></div><div class="step" step="6" data-x="9600" data-y="0"><blockquote><p><strong>Usage</strong></p></blockquote><p>Basic usage:</p><blockquote><p>from pyfirmata import Arduino, util</p><p>board = Arduino('/dev/tty.usbserial-A6008rIF')</p><p>board.digital[13].write(1)</p></blockquote></div><div class="step" step="7" data-x="11200" data-y="0"><blockquote><p><strong>Hands on</strong></p></blockquote></div></div><div id="hovercraft-help"><table><tr><th>Space</th><td>Forward</td></tr><tr><th>Left, Down, Page Down</th><td>Next slide</td></tr><tr><th>Right, Up, Page Up</th><td>Previous slide</td></tr><tr><th>P</th><td>Open presenter console</td></tr><tr><th>H</th><td>Toggle this help</td></tr></table></div><script type="text/javascript" src="js/impress.js"></script><script type="text/javascript" src="js/impressConsole.js"></script><script type="text/javascript" src="js/hovercraft.js"></script></body></html>