slitaz-forge rev 549
Add leds usage in PiBook
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed May 07 12:29:42 2014 +0200 (2014-05-07) |
parents | 22f4af7fa6f8 |
children | ab4386c4f70d |
files | arm/codex/pibook.html |
line diff
1.1 --- a/arm/codex/pibook.html Wed May 07 10:32:16 2014 +0200 1.2 +++ b/arm/codex/pibook.html Wed May 07 12:29:42 2014 +0200 1.3 @@ -60,6 +60,7 @@ 1.4 <li><a href="#gpio">GPIO Pins & I2C Bus</a></li> 1.5 <li><a href="#picam">Pi Camera - Pi NoIR</a></li> 1.6 <li><a href="#piglow">PiGlow from Pimorini</a></li> 1.7 + <li><a href="#pileds">Using leds with the RPi</a></li> 1.8 </ul> 1.9 1.10 <p> 1.11 @@ -491,6 +492,43 @@ 1.12 /usr/share/pyglow 1.13 </pre> 1.14 1.15 +<h2 id="pileds">Using leds with the RPi</h2> 1.16 + 1.17 +<p> 1.18 + leds can be used for many purpose such as notification or light show. 1.19 + SliTaz Raspberry Pi provide a built-in utility to help setting up and 1.20 + using leds. The RPi have on onboard green led (ACT) that you can 1.21 + turned on or off: 1.22 +</p> 1.23 +<pre> 1.24 +# pileds act 1.25 +</pre> 1.26 + 1.27 +<p> 1.28 + Pileds also provide example and usable commands for Adafruit 7segment 1.29 + LED Backpack and the 8x8 LED Matrix. Creating visual elements with 1.30 + Kids is very fun and let them train mathematics in the ame sime since 1.31 + the leds must be mapped (ie: 0, 3) on a gride. Let's display a nice 1.32 + little boat and piled built in help: 1.33 +</p> 1.34 + 1.35 +<pre> 1.36 +# pileds 8x8 --boat 1.37 +# pileds help 1.38 +</pre> 1.39 + 1.40 +<p> 1.41 + PiLeds use some example code from Adafruit and PiClass Git Hub 1.42 + repositories. We have packaged them for easy install/update and 1.43 + to provide some code right under the hand. Adafruit and PiClass 1.44 + code examples are located in: 1.45 +</p> 1.46 + 1.47 +<pre class="box-up"> 1.48 +/usr/share/adafruit 1.49 +/usr/share/piclass 1.50 +</pre> 1.51 + 1.52 <!-- Close content --> 1.53 </div> 1.54