-
-
Save VoltVisionFrenchy/55ec734f225141375c8d to your computer and use it in GitHub Desktop.
Bone101 Tutorial
This file contains hidden or 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
< |
This file contains hidden or 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
a |
This file contains hidden or 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
var b = require('bonescript'); | |
var led = "P8_10"; | |
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); |
This file contains hidden or 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
h |
This file contains hidden or 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
r |
This file contains hidden or 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
<h5 style="font-family: 'Gotham SSm A', 'Gotham SSm B'; line-height: 20px; color: rgb(0, 0, 0); margin: 0px; font-size: 16px; padding-bottom: 5px;"><span style="color: rgb(0, 172, 236); background-position: initial;">Blinking an LED with BeagleBone Black<br><span style="color: rgb(51, 51, 51); font-size: 13px; line-height: 18.571430206298828px; background-color: rgb(255, 255, 255); background-position: initial;">Make an LED Blink using Python on a BeagleBone Black<br></span><span style="color: rgb(51, 51, 51); font-size: 12px; line-height: 17.142858505249023px; background-color: rgb(255, 255, 255); background-position: initial;">In this tutorial, you will learn how to control an external LED using a BeagleBone Black (BBB) from Bonescript Library.<br></span><img src="https://learn.adafruit.com/system/guides/images/000/000/309/medium310/overview.jpg?1396718934" style="width: 152.25px; height: 92.59375px;"><br></span></h5> |
This file contains hidden or 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
Preview Card 1 | |
You Will Need | |
Wiring | |
Writing the program | |
Test Card1 | |
Test Card2 | |
Test Card3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment