Skip to content

Instantly share code, notes, and snippets.

@Dicetog
Forked from DiegoTc/CARD_0.html
Created August 10, 2014 19:00

Revisions

  1. @DiegoTc DiegoTc revised this gist Aug 6, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion CardList.html
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Preview Card 1
    You Will Need
    Wiring
    Writing the program
    Code
  2. @DiegoTc DiegoTc revised this gist Aug 6, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion CARD_2.js
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    var b = require('bonescript');
    var led = "P8_10";
    var led = "P8_12";
    var state = 0;

    b.pinMode(led, 'out');
  3. @DiegoTc DiegoTc revised this gist Jul 23, 2014. No changes.
  4. @DiegoTc DiegoTc revised this gist Jul 23, 2014. No changes.
  5. @DiegoTc DiegoTc revised this gist Jul 23, 2014. No changes.
  6. @DiegoTc DiegoTc revised this gist Jul 23, 2014. No changes.
  7. @DiegoTc DiegoTc revised this gist Jul 23, 2014. No changes.
  8. @DiegoTc DiegoTc revised this gist Jul 23, 2014. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions CARD_1.html
    Original file line number Diff line number Diff line change
    @@ -13,8 +13,7 @@
    </span>
    </p>
    <p>
    <span style="font-family: 'Gotham SSm A', 'Gotham SSm B';">
    <img src="https://learn.adafruit.com/system/assets/assets/000/009/108/medium800/beaglebone_fritzing.png?1396883299" style="width: 263px;">
    <span style="font-family: 'Gotham SSm A', 'Gotham SSm B';">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<img src="https://learn.adafruit.com/system/assets/assets/000/009/108/medium800/beaglebone_fritzing.png?1396883299" style="width: 263px; float: none;">
    <br>
    </span>
    </p>
  9. @DiegoTc DiegoTc revised this gist Jul 23, 2014. No changes.
  10. @DiegoTc DiegoTc revised this gist Jul 23, 2014. No changes.
  11. @DiegoTc DiegoTc revised this gist Jul 23, 2014. No changes.
  12. @DiegoTc DiegoTc revised this gist Jul 23, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion CardList.html
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Overview
    Preview Card 1
    You Will Need
    Wiring
    Writing the program
  13. @DiegoTc DiegoTc revised this gist Jul 23, 2014. 3 changed files with 1 addition and 1 deletion.
    File renamed without changes.
    File renamed without changes.
    2 changes: 1 addition & 1 deletion CardList.html
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Overview
    You Will Need
    Card 3
    Wiring
    Writing the program
  14. @DiegoTc DiegoTc revised this gist Jul 23, 2014. No changes.
  15. @DiegoTc DiegoTc revised this gist Jul 23, 2014. No changes.
  16. @DiegoTc DiegoTc revised this gist Jul 23, 2014. No changes.
  17. @DiegoTc DiegoTc revised this gist Jul 23, 2014. No changes.
  18. @DiegoTc DiegoTc revised this gist Jul 23, 2014. No changes.
  19. @DiegoTc DiegoTc revised this gist Jul 23, 2014. No changes.
  20. @DiegoTc DiegoTc revised this gist Jul 23, 2014. No changes.
  21. @DiegoTc DiegoTc revised this gist Jul 23, 2014. No changes.
  22. @DiegoTc DiegoTc revised this gist Jul 23, 2014. No changes.
  23. @DiegoTc DiegoTc revised this gist Jul 23, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion CARD_Preview.html
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    <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 Python.<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>
    <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>
  24. @DiegoTc DiegoTc revised this gist Jul 23, 2014. 2 changed files with 17 additions and 0 deletions.
    17 changes: 17 additions & 0 deletions CARD_1.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    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);
    File renamed without changes.
  25. @DiegoTc DiegoTc revised this gist Jul 23, 2014. 2 changed files with 30 additions and 2 deletions.
    30 changes: 29 additions & 1 deletion CARD_1.html
    Original file line number Diff line number Diff line change
    @@ -1 +1,29 @@
    <p><span style="font-family: 'Gotham SSm A', 'Gotham SSm B'; font-size: 30px; line-height: 30px;">Wiring</span><br></p><p><span style="font-family: 'Gotham SSm A', 'Gotham SSm B';">Wire up the solderless breadboard using the header leads as shown below.</span><span style="font-family: 'Gotham SSm A', 'Gotham SSm B'; font-size: 30px; line-height: 30px;"><br></span></p><p><span style="font-family: 'Gotham SSm A', 'Gotham SSm B';"><img src="https://learn.adafruit.com/system/assets/assets/000/009/108/medium800/beaglebone_fritzing.png?1396883299" style="width: 263px;"><br></span></p><p><span style="font-family: 'Gotham SSm A', 'Gotham SSm B';">Push the LED leads into the breadboard, with the longer (positive) lead towards the top of the breadboard. It does not matter which way around the resistor goes.</span><span style="font-family: 'Gotham SSm A', 'Gotham SSm B';"><br></span></p>
    <p>
    <span style="font-family: 'Gotham SSm A', 'Gotham SSm B'; font-size: 30px; line-height: 30px;">
    Wiring
    </span>
    <br>
    </p>
    <p>
    <span style="font-family: 'Gotham SSm A', 'Gotham SSm B';">
    Wire up the solderless breadboard using the header leads as shown below.
    </span>
    <span style="font-family: 'Gotham SSm A', 'Gotham SSm B'; font-size: 30px; line-height: 30px;">
    <br>
    </span>
    </p>
    <p>
    <span style="font-family: 'Gotham SSm A', 'Gotham SSm B';">
    <img src="https://learn.adafruit.com/system/assets/assets/000/009/108/medium800/beaglebone_fritzing.png?1396883299" style="width: 263px;">
    <br>
    </span>
    </p>
    <p>
    <span style="font-family: 'Gotham SSm A', 'Gotham SSm B';">
    Push the LED leads into the breadboard, with the longer (positive) lead towards the top of the breadboard. It does not matter which way around the resistor goes.
    </span>
    <span style="font-family: 'Gotham SSm A', 'Gotham SSm B';">
    <br>
    </span>
    </p>
    <span style="font-family: 'Gotham SSm A', 'Gotham SSm B';">The top two connections on the BBB expansion header we are using (P8) are both GND. The other lead is connected to pin 10, which is the right-hand connector on the fifth row down. The pins are numbered left to right, 1, 2 then on the next row down 3,4 etc.</span>
    2 changes: 1 addition & 1 deletion CardList.html
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Overview
    You Will Need
    Card 3
    Card 4
    Wiring
  26. @DiegoTc DiegoTc revised this gist Jul 23, 2014. No changes.
  27. @DiegoTc DiegoTc revised this gist Jul 23, 2014. No changes.
  28. @DiegoTc DiegoTc revised this gist Jul 23, 2014. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions CARD_1.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    <p><span style="font-family: 'Gotham SSm A', 'Gotham SSm B'; font-size: 30px; line-height: 30px;">Wiring</span><br></p><p><span style="font-family: 'Gotham SSm A', 'Gotham SSm B';">Wire up the solderless breadboard using the header leads as shown below.</span><span style="font-family: 'Gotham SSm A', 'Gotham SSm B'; font-size: 30px; line-height: 30px;"><br></span></p><p><span style="font-family: 'Gotham SSm A', 'Gotham SSm B';"><img src="https://learn.adafruit.com/system/assets/assets/000/009/108/medium800/beaglebone_fritzing.png?1396883299" style="width: 263px;"><br></span></p><p><span style="font-family: 'Gotham SSm A', 'Gotham SSm B';">Push the LED leads into the breadboard, with the longer (positive) lead towards the top of the breadboard. It does not matter which way around the resistor goes.</span><span style="font-family: 'Gotham SSm A', 'Gotham SSm B';"><br></span></p>
  29. @DiegoTc DiegoTc revised this gist Jul 23, 2014. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion CardList.html
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    Overview
    Card 2
    You Will Need
    Card 3
    Card 4
  30. @DiegoTc DiegoTc revised this gist Jul 23, 2014. No changes.