# HG changeset patch # User Christophe Lincoln # Date 1399502092 -7200 # Node ID 72a2b6c4a2c5a7c707ecf6a28ad2ab7cea950ac3 # Parent 2b098709d7498a70c024d37d4e1fc0d996548c54 Add PiFace doc diff -r 2b098709d749 -r 72a2b6c4a2c5 arm/codex/pibook.html --- a/arm/codex/pibook.html Wed May 07 18:56:35 2014 +0100 +++ b/arm/codex/pibook.html Thu May 08 00:34:52 2014 +0200 @@ -58,9 +58,10 @@
  • Pi setup suggestions
  • Desktop customization
  • GPIO Pins & I2C Bus
  • +
  • Using leds with the RPi
  • Pi Camera - Pi NoIR
  • PiGlow from Pimorini
  • -
  • Using leds with the RPi
  • +
  • PiFace Digital setup
  • @@ -280,6 +281,11 @@

  • pi-blaster - Enables PWM on the GPIO pins you request of a Raspberry Pi.
  • +
  • libmcp23s17 - A simple C library for accessing an MCP23S17 port expander + found on PiFace board.
  • + +
  • libpifacedigital - A simple library for controlling PiFace Digital
  • +
  • (xorg-xf86-video-fbturbo) - Buggy Xorg server module for the R-Pi.
  • @@ -440,6 +446,43 @@ LOAD_MODULES="snd-bcm2835 i2c-dev" +

    Using leds with the RPi

    + +

    + Leds can be used for many purposes such as for a notification or as a light show. + SliTaz Raspberry Pi provides a built-in utility to help set up and + use leds. The RPi has an onboard green led (ACT) that you can + turn on or off: +

    +
    +# pileds act
    +
    + +

    + Pileds also provides examples and usable commands for Adafruit 7segment + LED Backpack and the 8x8 LED Matrix. Creating visual elements with + Kids is fun and lets them learn mathematics at the same time, since + the leds must be mapped (ie: 0, 3) on a grid. Let's display a nice + little boat and pileds built in help: +

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

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

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

    Pi Camera - Pi NoIR

    @@ -492,43 +535,36 @@ /usr/share/pyglow -

    Using leds with the RPi

    +

    PiFace Digital

    - Leds can be used for many purposes such as for a notification or as a light show. - SliTaz Raspberry Pi provides a built-in utility to help set up and - use leds. The RPi has an onboard green led (ACT) that you can - turn on or off: + The PiFace Digital board allows you to connect things like switches, + lights and motors so your Raspberry Pi becomes aware of, and can + influence the world around it. Plugin your PiFace board then install + the official C library including the 'pifacedigital' utility and + testsuite:

    +
    -# pileds act
    +# spk-add libpifacedigital
     

    - Pileds also provides examples and usable commands for Adafruit 7segment - LED Backpack and the 8x8 LED Matrix. Creating visual elements with - Kids is fun and lets them learn mathematics at the same time, since - the leds must be mapped (ie: 0, 3) on a grid. Let's display a nice - little boat and pileds built in help: + To test your Piface Digital board on SliTaz Raspberry Pi you simply + have to run the testsuite from the cmdline. The tool will test GPIO + pns, leds and input button:

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

    - PiLeds uses some example code from Adafruit and PiClass Git Hub - repositories. We have packaged them for easy install/updates and - to provide some code right under the hood. Adafruit and PiClass - code examples are located in: + PiFace official website: + www.piface.org.uk + and guides

    -
    -/usr/share/adafruit
    -/usr/share/piclass
    -
    - diff -r 2b098709d749 -r 72a2b6c4a2c5 arm/news.txt --- a/arm/news.txt Wed May 07 18:56:35 2014 +0100 +++ b/arm/news.txt Thu May 08 00:34:52 2014 +0200 @@ -1,3 +1,4 @@ 20140425: Full PiGlow support: PyGlow + Wiring Pi + custom SliTaz utility 20140501: SliTaz PiBook is out! Learn how to use SliTaz Raspberry Pi distro 20140502: Blog post: SliTaz Raspberry Pi news +20140507: Blog post: SliTaz RPi Box and PiLeds diff -r 2b098709d749 -r 72a2b6c4a2c5 arm/rpi/index.html --- a/arm/rpi/index.html Wed May 07 18:56:35 2014 +0100 +++ b/arm/rpi/index.html Thu May 08 00:34:52 2014 +0200 @@ -153,6 +153,7 @@

    Sat-rpi builder