An emulator for the PiFace Digital I/O board.
Download the latest debian package from here and install with:
$ dpkg -i python3-pifacedigital-emulator_1.2.0-1_all.deb
You may also need to install the latest releases of pifacedigitalio and pifacecommon.
Or you can install without using your package manager:
$ git clone https://github.com/piface/pifacedigitalio.git
$ cd pifacedigitalio
$ bin/build_ui.sh
$ sudo python3 setup.py install
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()
See http://piface.github.io/pifacedigitalio/example.html
UI built with qt4-designer. To generate the UI files, run:
bin/build_ui.sh