Arduino LED toggle
Note: on Mac OS X Lion, it's necessary to update USB Serial drivers:…
Arduino LED toggle
Note: on Mac OS X Lion, it's necessary to update USB Serial drivers:
http://geekscape.posterous.com/mac-os-x-17-lion-upgrading-ftdi-usb-serial-dr
This sample shows a big button that lets you toggle between the on/off
state of an LED connected to an Arduino.
Install the LED sketch on your Duo.
Attach a LED to pin 2 (with a resistor to not burn it out).
Install and launch this packaged app.
Press the button to toggle the LED.
Future version: use the standard Firmata sketch and build a JS firmata driver
for Chrome packaged apps.
See the source code at https://github.com/GoogleChrome/chrome-app-samples/tree/master/samples/serial/ledtoggle