BeagleBone Black workshop at Maker Faire Detroit 2013
Sponsored by element14
Bill of Materials (BOM) for the workshop with Newark element14 SKUs:
Let's start with a quick board tour
Task #1 - Blink an LED
// Setup
var b = require('bonescript'); // Read library
var LED = "P9_14"; // Where the LED is connected
var state = 0; // Define the 'state' variable
b.pinMode(LED, b.OUTPUT); // Enable the pin
// Call 'blink' every 100ms
setInterval(blink, 100);
// Define the 'blink' function
function blink() {
state = !state;
b.analogWrite(LED, state);
}
Run examples from this web page
If you don't want to type these programs into the Cloud9 IDE, you can connect your board over USB and the box below should turn green. You can then use the run buttons above.
Last updated by jkridner.wordpress.com on Tue Sep 02 2014 20:07:57 GMT-0000 (UTC).

