slitaz-forge rev 553
Add PiFace doc
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu May 08 00:34:52 2014 +0200 (2014-05-08) |
parents | 2b098709d749 |
children | 2b3ae0ea8187 |
files | arm/codex/pibook.html arm/news.txt arm/rpi/index.html |
line diff
1.1 --- a/arm/codex/pibook.html Wed May 07 18:56:35 2014 +0100 1.2 +++ b/arm/codex/pibook.html Thu May 08 00:34:52 2014 +0200 1.3 @@ -58,9 +58,10 @@ 1.4 <li><a href="#setup">Pi setup suggestions</a></li> 1.5 <li><a href="#desktop">Desktop customization</a></li> 1.6 <li><a href="#gpio">GPIO Pins & I2C Bus</a></li> 1.7 + <li><a href="#pileds">Using leds with the RPi</a></li> 1.8 <li><a href="#picam">Pi Camera - Pi NoIR</a></li> 1.9 <li><a href="#piglow">PiGlow from Pimorini</a></li> 1.10 - <li><a href="#pileds">Using leds with the RPi</a></li> 1.11 + <li><a href="#piface">PiFace Digital setup</a></li> 1.12 </ul> 1.13 1.14 <p> 1.15 @@ -280,6 +281,11 @@ 1.16 1.17 <li>pi-blaster - Enables PWM on the GPIO pins you request of a Raspberry Pi.</li> 1.18 1.19 + <li>libmcp23s17 - A simple C library for accessing an MCP23S17 port expander 1.20 + found on PiFace board.</li> 1.21 + 1.22 + <li>libpifacedigital - A simple library for controlling PiFace Digital</li> 1.23 + 1.24 <li>(xorg-xf86-video-fbturbo) - Buggy Xorg server module for the R-Pi.</li> 1.25 </ul> 1.26 1.27 @@ -440,6 +446,43 @@ 1.28 LOAD_MODULES="snd-bcm2835 i2c-dev" 1.29 </pre> 1.30 1.31 +<h2 id="pileds">Using leds with the RPi</h2> 1.32 + 1.33 +<p> 1.34 + Leds can be used for many purposes such as for a notification or as a light show. 1.35 + SliTaz Raspberry Pi provides a built-in utility to help set up and 1.36 + use leds. The RPi has an onboard green led (ACT) that you can 1.37 + turn on or off: 1.38 +</p> 1.39 +<pre> 1.40 +# pileds act 1.41 +</pre> 1.42 + 1.43 +<p> 1.44 + Pileds also provides examples and usable commands for Adafruit 7segment 1.45 + LED Backpack and the 8x8 LED Matrix. Creating visual elements with 1.46 + Kids is fun and lets them learn mathematics at the same time, since 1.47 + the leds must be mapped (ie: 0, 3) on a grid. Let's display a nice 1.48 + little boat and pileds built in help: 1.49 +</p> 1.50 + 1.51 +<pre> 1.52 +# pileds 8x8 --boat 1.53 +# pileds help 1.54 +</pre> 1.55 + 1.56 +<p> 1.57 + PiLeds uses some example code from Adafruit and PiClass Git Hub 1.58 + repositories. We have packaged them for easy install/updates and 1.59 + to provide some code right under the hood. Adafruit and PiClass 1.60 + code examples are located in: 1.61 +</p> 1.62 + 1.63 +<pre class="box-up"> 1.64 +/usr/share/adafruit 1.65 +/usr/share/piclass 1.66 +</pre> 1.67 + 1.68 <h2 id="picam">Pi Camera - Pi NoIR</h2> 1.69 1.70 <p> 1.71 @@ -492,43 +535,36 @@ 1.72 /usr/share/pyglow 1.73 </pre> 1.74 1.75 -<h2 id="pileds">Using leds with the RPi</h2> 1.76 +<h2 id="piface">PiFace Digital</h2> 1.77 1.78 <p> 1.79 - Leds can be used for many purposes such as for a notification or as a light show. 1.80 - SliTaz Raspberry Pi provides a built-in utility to help set up and 1.81 - use leds. The RPi has an onboard green led (ACT) that you can 1.82 - turn on or off: 1.83 + The PiFace Digital board allows you to connect things like switches, 1.84 + lights and motors so your Raspberry Pi becomes aware of, and can 1.85 + influence the world around it. Plugin your PiFace board then install 1.86 + the official C library including the 'pifacedigital' utility and 1.87 + testsuite: 1.88 </p> 1.89 + 1.90 <pre> 1.91 -# pileds act 1.92 +# spk-add libpifacedigital 1.93 </pre> 1.94 1.95 <p> 1.96 - Pileds also provides examples and usable commands for Adafruit 7segment 1.97 - LED Backpack and the 8x8 LED Matrix. Creating visual elements with 1.98 - Kids is fun and lets them learn mathematics at the same time, since 1.99 - the leds must be mapped (ie: 0, 3) on a grid. Let's display a nice 1.100 - little boat and pileds built in help: 1.101 + To test your Piface Digital board on SliTaz Raspberry Pi you simply 1.102 + have to run the testsuite from the cmdline. The tool will test GPIO 1.103 + pns, leds and input button: 1.104 </p> 1.105 1.106 <pre> 1.107 -# pileds 8x8 --boat 1.108 -# pileds help 1.109 +# pifacedigital-test 1.110 </pre> 1.111 1.112 <p> 1.113 - PiLeds uses some example code from Adafruit and PiClass Git Hub 1.114 - repositories. We have packaged them for easy install/updates and 1.115 - to provide some code right under the hood. Adafruit and PiClass 1.116 - code examples are located in: 1.117 + PiFace official website: 1.118 + <a href="http://www.piface.org.uk/">www.piface.org.uk</a> 1.119 + and <a href="http://www.piface.org.uk/guides/">guides</a> 1.120 </p> 1.121 1.122 -<pre class="box-up"> 1.123 -/usr/share/adafruit 1.124 -/usr/share/piclass 1.125 -</pre> 1.126 - 1.127 <!-- Close content --> 1.128 </div> 1.129
2.1 --- a/arm/news.txt Wed May 07 18:56:35 2014 +0100 2.2 +++ b/arm/news.txt Thu May 08 00:34:52 2014 +0200 2.3 @@ -1,3 +1,4 @@ 2.4 20140425: Full PiGlow support: PyGlow + Wiring Pi + custom SliTaz utility 2.5 20140501: <a href="codex/pibook.html">SliTaz PiBook</a> is out! Learn how to use SliTaz Raspberry Pi distro 2.6 20140502: Blog post: <a href="http://scn.slitaz.org/index.cgi?blog&p=20">SliTaz Raspberry Pi news</a> 2.7 +20140507: Blog post: <a href="http://scn.slitaz.org/index.cgi?blog&p=21">SliTaz RPi Box and PiLeds</a>
3.1 --- a/arm/rpi/index.html Wed May 07 18:56:35 2014 +0100 3.2 +++ b/arm/rpi/index.html Thu May 08 00:34:52 2014 +0200 3.3 @@ -153,6 +153,7 @@ 3.4 <ul> 3.5 <li><a href="../codex/pibook.html#picam">Pi Camera - Pi NoIR</a></li> 3.6 <li><a href="../codex/pibook.html#piglow">PiGlow from Pimorini</a></li> 3.7 + <li><a href="../codex/pibook.html#piface">PiFace Digital</a></li> 3.8 </ul> 3.9 3.10 <h2>Sat-rpi builder</h2>