Skip to content

Instantly share code, notes, and snippets.

@Dicetog
Forked from DiegoTc/CARD_0.html
Created August 11, 2014 03:53
Show Gist options
  • Save Dicetog/51f1b39fc492e7276fd9 to your computer and use it in GitHub Desktop.
Save Dicetog/51f1b39fc492e7276fd9 to your computer and use it in GitHub Desktop.
Bone101 Tutorial
<h3>
Build and execute instructions</h3><div><img src="http://beagleboard.org/static/uploads/LEDs.PNG" style="width: 337px;"><br></div><div><ul style="color: rgb(82, 82, 82); font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 12px;"><li>Run the example code of the next card and observe USR3 blinking.</li><li>Alter the frequency and re-run the example.</li></ul></div>
var b = require('bonescript');
var led = "USR3";
var state = 0;
b.pinMode(led, 'out');
toggleLED = function() {
state = state ? 0 : 1;
b.digitalWrite(led, state);
};
timer = setInterval(toggleLED, 100);
stopTimer = function() {
clearInterval(timer);
};
setTimeout(stopTimer, 3000);
<span style="font-weight: bold;">Demo: Bink an on-board LED.</span><br><div style="line-height: 1.5;">A small tutorial that explains how to make blink the led that is on BBB</div>
<span style="font-weight: bold;">Demo: Bink an on-board LED.</span><br><div style="line-height: 1.5;">A small tutorial that explains how to make blink the led that is on BBB</div>
Preview Card 1
Build and execute instructions
Build and execute instructions
Video
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment