Raspberry PI und Pi-Face

Pi-Face ist ein einfaches Board zur Erweiterung des Raspberry.

Das sollte natürlich nur draufgesteckt werden solange der Raspberry nicht am Strom angeschlossen ist.

Wie immer, bevor man mit irgendwas anfängt ist auf so einem debian System ein

sudo apt-get update und ein sudo apt-get upgrade sinnvoll, um die aktuellste Software zu erhalten.

The SPI Driver is used by the Pi-Face to communicate with the Raspberry Pi, however this driver is not enabled by default.

To enable the SPI Driver, first load the /etc/modprobe.d/raspi-blacklist.conf file using your preferred text editor, say nano for example:
      sudo nano /etc/modprobe.d/raspi-blacklist.conf

Then add a # add the beginning of the line which reads blacklist spi-bcm2708, so it reads # blacklist spi-bcm2708.

Finally, save the file. If you are using nano, this is done using Ctrl-X followed by Y to save and Enter to confirm the file name.

 

Download The Installation Script

Manchester University, the devleopers of the Pi Face, have kindly provided a handy installation script to download everything you need to get started.

To download this script, type:
      wget pi.cs.man.ac.uk/download/install.txt


Then, to run the script in the terminal, type:
      bash install.txt

This step may take quite a while to complete, as the script downloads everything you need, so now is the perfect time for a tea break.

 

Reboot Your Raspberry Pi

Once the script has completed, you will need to reboot your Raspberry Pi.

To do this, type:
      sudo reboot
or   sudo shutdown now -r

 

Test Out The Pi-Face

The easiest way to test that the installation worked correctly is to use the built-in Pi-Face graphical emulator.

If you are not already using a Graphical Interface, start one by typing:
      startx

To open the simulator, type the following into a terminal window:
      ~/piface/scripts/piface-emulator