Skip to content

Instantly share code, notes, and snippets.

@Dicetog
Dicetog / CARD_0.html
Last active August 29, 2015 14:05 — forked from DiegoTc/CARD_0.html
Bone101 Tutorial
<h1 style="font-size: 2em; font-family: Arial, Verdana, Helvetica, sans-serif; color: rgb(180, 162, 121); line-height: normal;">analogRead(pin, [callback])</h1><p style="font-size: 1.1em; line-height: 1.3em; color: rgb(82, 82, 82); font-family: Arial, Helvetica, Verdana, sans-serif;">Read the voltage at an analog input pin.</p><h2 style="font-size: 1.5em; font-family: Arial, Verdana, Helvetica, sans-serif; color: rgb(180, 162, 121); margin: 5px 0px; line-height: normal;">Arguments</h2><ul style="color: rgb(82, 82, 82); font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 12px;"><li><em>pin</em>: the&nbsp;<a href="http://beagleboard.org/Support/BoneScript/#pin" style="color: rgb(222, 114, 36);">pin identifier</a></li><li><em>callback</em>: called upon completion</li></ul><h2 style="font-size: 1.5em; font-family: Arial, Verdana, Helvetica, sans-serif; color: rgb(180, 162, 121); margin: 5px 0px; line-height: normal;">Return value</h2><ul style="color: rgb(82, 82, 82); font-family: Arial, Helvetica, Ver
@Dicetog
Dicetog / CARD_0.html
Last active August 29, 2015 14:05 — forked from DiegoTc/CARD_0.html
Bone101 Tutorial
<h1 style="font-size: 2em; font-family: Arial, Verdana, Helvetica, sans-serif; color: rgb(180, 162, 121); line-height: normal;">analogRead(pin, [callback])</h1><p style="font-size: 1.1em; line-height: 1.3em; color: rgb(82, 82, 82); font-family: Arial, Helvetica, Verdana, sans-serif;">Read the voltage at an analog input pin.</p><h2 style="font-size: 1.5em; font-family: Arial, Verdana, Helvetica, sans-serif; color: rgb(180, 162, 121); margin: 5px 0px; line-height: normal;">Arguments</h2><ul style="color: rgb(82, 82, 82); font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 12px;"><li><em>pin</em>: the&nbsp;<a href="http://beagleboard.org/Support/BoneScript/#pin" style="color: rgb(222, 114, 36);">pin identifier</a></li><li><em>callback</em>: called upon completion</li></ul><h2 style="font-size: 1.5em; font-family: Arial, Verdana, Helvetica, sans-serif; color: rgb(180, 162, 121); margin: 5px 0px; line-height: normal;">Return value</h2><ul style="color: rgb(82, 82, 82); font-family: Arial, Helvetica, Ver
@Dicetog
Dicetog / CARD_0.html
Created August 11, 2014 03:53 — forked from DiegoTc/CARD_0.html
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>
@Dicetog
Dicetog / CARD_0.html
Created August 11, 2014 03:53 — forked from DiegoTc/CARD_0.html
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>
@Dicetog
Dicetog / CARD_0.html
Created August 11, 2014 03:43 — forked from DiegoTc/CARD_0.html
Bone101 Tutorial
<h1 style="font-size: 2em; font-family: Arial, Verdana, Helvetica, sans-serif; color: rgb(180, 162, 121); line-height: normal;">Demo: Maxbotic Ultrasonic Sensor</h1><p style="font-size: 1.1em; line-height: 1.3em; color: rgb(82, 82, 82); font-family: Arial, Helvetica, Verdana, sans-serif;">The&nbsp;<a href="http://www.maxbotix.com/Ultrasonic_Sensors/MB1020.htm" style="color: rgb(222, 114, 36);">LV-MaxSonar-EZ2 High Performance Sonar Range Finder</a>&nbsp;provides very short to long-range detection and ranging, in an incredibly small package. The sonar detects objects from 0-254 inches and provides sonar range information from 6-inches out to 254-inches with 1-inch resolution.</p><i style="color: rgb(82, 82, 82); font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 12px;">Note: Each time after the Sonar is powered up, it will calibrate during its first read cycle. The sensor uses this stored information to range a near object. It is important that objects not be close to the sensor during this calibra
@Dicetog
Dicetog / CARD_0.html
Created August 10, 2014 19:03 — forked from DiegoTc/CARD_0.html
Bone101 Tutorial
<h1 style="font-size: 2em; font-family: Arial, Verdana, Helvetica, sans-serif; color: rgb(180, 162, 121); line-height: normal;">getPlatform([callback])</h1><h2 style="font-size: 1.5em; font-family: Arial, Verdana, Helvetica, sans-serif; color: rgb(180, 162, 121); margin: 5px 0px; line-height: normal;">Arguments</h2><ul style="color: rgb(82, 82, 82); font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 12px;"><li><em>callback</em>: called upon completion</li></ul><h2 style="font-size: 1.5em; font-family: Arial, Verdana, Helvetica, sans-serif; color: rgb(180, 162, 121); margin: 5px 0px; line-height: normal;">Return value</h2><ul style="color: rgb(82, 82, 82); font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 12px;"><li><em>name</em>: name of the board</li><li><em>serialNumber</em>: serial number of the board</li><li><em>version</em>: revision of the board</li><li><em>bonescript</em>: verison of bonescript</li></ul><h2 style="font-size: 1.5em; font-family: Arial, Verdana, Helvetica, sans-s
@Dicetog
Dicetog / CARD_0.html
Created August 10, 2014 19:00 — forked from DiegoTc/CARD_0.html
Bone101 Tutorial
<p>
</p>
<table class="table table-bordered">
<tbody>
<tr>
<td><span style="font-family: Arial;">
Beagle Bone Black
</span></td>
<td>
<img src="https://learn.adafruit.com/system/assets/assets/000/009/103/medium800/beaglebone_BBB.jpg?1396883195" style="width: 119.25px; height: 72.546875px;">
@Dicetog
Dicetog / CARD_0.html
Created August 10, 2014 18:57 — forked from DiegoTc/CARD_0.html
Bone101 Tutorial
<p style="font-size: 1.1em; line-height: 1.3em; color: rgb(82, 82, 82); font-family: Arial, Helvetica, Verdana, sans-serif;">Write a&nbsp;<a href="http://beagleboard.org/Support/BoneScript/#HIGH" style="color: rgb(222, 114, 36);">HIGH</a>&nbsp;or&nbsp;<a href="http://beagleboard.org/Support/BoneScript/#LOW" style="color: rgb(222, 114, 36);">LOW</a>&nbsp;to a digital I/O pin.</p><p style="font-size: 1.1em; line-height: 1.3em; color: rgb(82, 82, 82); font-family: Arial, Helvetica, Verdana, sans-serif;">NOTE: The 4 USRx LEDs are all able to operate as digital output pins, giving you an always-available output to test your software.</p><h2 style="font-size: 1.5em; font-family: Arial, Verdana, Helvetica, sans-serif; color: rgb(180, 162, 121); margin: 5px 0px; line-height: normal;">Arguments</h2><ul style="color: rgb(82, 82, 82); font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 12px;"><li><em>pin</em>: the&nbsp;<a href="http://beagleboard.org/Support/BoneScript/#pin" style="color: rgb(222, 114, 36);">
@Dicetog
Dicetog / CARD_0.html
Created August 10, 2014 18:51 — forked from DiegoTc/CARD_0.html
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>
@Dicetog
Dicetog / CARD_0.html
Created August 10, 2014 18:48 — forked from DiegoTc/CARD_0.html
Bone101 Tutorial
<span style="color: rgb(51, 51, 51); font-family: 'Gotham SSm A', 'Gotham SSm B'; font-size: 30px; line-height: 30px;">Overview<br></span><span style="color: rgb(51, 51, 51); font-family: 'Gotham SSm A', 'Gotham SSm B'; font-size: 14px; line-height: 20px;">In this tutorial, you will learn how to control the color of an RGB LED using a BeagleBone Black (BBB).<br></span><span style="color: rgb(51, 51, 51); font-family: 'Gotham SSm A', 'Gotham SSm B'; font-size: 30px; line-height: 30px;"><img src="https://learn.adafruit.com/system/assets/assets/000/009/503/medium800/beaglebone_overview_web.jpg?1396892026" style="width: 403px;"><br></span><span style="color: rgb(51, 51, 51); font-family: 'Gotham SSm A', 'Gotham SSm B'; font-size: 14px; line-height: 20px;">Because the BBB runs Linux, there are many ways in which it can be programmed. In this tutorial we show how to control the power output of a GPIO pin and hence control the color of an RGB LED using Python.</span><span style="color: rgb(51, 51, 51); font-family: