An emulator for the PiFace Digital board.
Switch branches/tags
Nothing to show
Clone or download
thomasmacpherson Update
Updated docs link to point to new docs on
Latest commit 687359b Dec 17, 2014


An emulator for the PiFace Digital I/O board.


Make sure you are using the lastest version of Raspbian::

$ sudo apt-get update
$ sudo apt-get upgrade

Install pifacedigital-emulator (for Python 3) with the following command::

$ sudo apt-get install python3-pifacedigital-emulator


To run the emulator type:

$ pifacedigital-emulator

To use it with Python (just like pifacedigitalio):

$ python3
>>> import pifacedigital_emulator as emu
>>> emu.init()  # a window should pop up
>>> pifacedigital = emu.PiFaceDigital()
>>> pifacedigital.leds[0].toggle()


Development Notes

UI built with qt4-designer. To generate the UI files, run: