# HG changeset patch # User Christophe Lincoln # Date 1399458582 -7200 # Node ID 500178c52ad29c6eb1846e150775a3df963d0619 # Parent 22f4af7fa6f839d0d9ab4868993c9309031e8f17 Add leds usage in PiBook diff -r 22f4af7fa6f8 -r 500178c52ad2 arm/codex/pibook.html --- a/arm/codex/pibook.html Wed May 07 10:32:16 2014 +0200 +++ b/arm/codex/pibook.html Wed May 07 12:29:42 2014 +0200 @@ -60,6 +60,7 @@
  • GPIO Pins & I2C Bus
  • Pi Camera - Pi NoIR
  • PiGlow from Pimorini
  • +
  • Using leds with the RPi
  • @@ -491,6 +492,43 @@ /usr/share/pyglow +

    Using leds with the RPi

    + +

    + leds can be used for many purpose such as notification or light show. + SliTaz Raspberry Pi provide a built-in utility to help setting up and + using leds. The RPi have on onboard green led (ACT) that you can + turned on or off: +

    +
    +# pileds act
    +
    + +

    + Pileds also provide example and usable commands for Adafruit 7segment + LED Backpack and the 8x8 LED Matrix. Creating visual elements with + Kids is very fun and let them train mathematics in the ame sime since + the leds must be mapped (ie: 0, 3) on a gride. Let's display a nice + little boat and piled built in help: +

    + +
    +# pileds 8x8 --boat
    +# pileds help
    +
    + +

    + PiLeds use some example code from Adafruit and PiClass Git Hub + repositories. We have packaged them for easy install/update and + to provide some code right under the hand. Adafruit and PiClass + code examples are located in: +

    + +
    +/usr/share/adafruit
    +/usr/share/piclass
    +
    +