If you looking for a place to buy the PiFace internationally go here - Buy PiFace Worldwide
Step 1: Preparing the SD Card
Step 2: Connecting the Pi/Piface
Power on the Pi.
Step 3: Setting Up Your Pi
Step 4: Configuring the Pi for PiFace
sudo nano /etc/modprobe.d/raspi-blacklist.confThis should open the file in the command line, using the arrows scroll down to the line that says
blacklist spi-bcm2708and insert a # in front of it (this comments out the line stopping the SPI driver being disabled on boot up), press
CTRL + O and then Enterto write out (save the file) followed by
CTRL + Xto exit nano. Reboot your Pi. Tthe PiFace libraries are now installed in the raspbian image by default however we still need to install the emulator which is handy for testing (this is not required to make the PiFace run). To install the emulator use the following command in your terminal window, this will take a few minutes
sudo apt-get install python3-pifacedigital-emulatorOnce installed you should have a desktop icon for the emulator.
Step 5: Testing the PiFace (Emulator)
Open up the PiFace Digital Emulator, from the 'Enable' menu select 'Output Control'.
Pressing buttons 0 - 7 in the output control box should light up all the LEDs on your PiFace Board, assuming your board lights up your PiFace is now fully configured and working.
Step 6: Testing the PiFace With Python
Import the PiFace Python Libraries:
Create a new PiFace Digital Object, call it pfd. Note: In Python the case of the code is important, make sure you copy this letter for letter.
pfd = pifacedigitalio.PiFaceDigital()
The output pins are numbered 0 - 7 (from right to left) the very first pin is not number as this is the pin that provides voltage, you do not control this one. We will be playing with pin 7.
Turn Pin 7 on
pfd.output_pins.value = 1
Turn Pin 7 off
You should have just seen the LED at output pin 7 turn on and off and that's it for this instructable, look out for my next one where I will be showing you how you can use the above code and a tiny bit more to make multiple LEDs flash in a chasing pattern.