2. Second, install the PiFace Digital libraries and change the permissions of the SPI interface. Luckily, running this command will automate the entire process.
sudo apt-get update
wget -O - http://pi.cs.man.ac.uk/download/install.txt | bash
And reboot your Pi once installed.
Use the PiFace emulator to test the input and outputs for the PiFace board.
You'll need to log back into your Raspberry Pi and start the GUI environment (startx)
Open the Terminal application and type:
This will enable you to test the inputs are recognised and the outputs software controllable.
USING PIFACE IN PYTHON
I was itching to begin controlling the PiFace board from within Python. I wrote a simple program to demonstrate it working.
import piface.pfio as piface
switch7 = piface.digital_read(7)
if switch7 > 0: