Skip to content

eyak/pifacedigital-emulator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pifacedigital-emulator

An emulator for the PiFace Digital I/O board.

Install

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

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

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

$ sudo apt-get install python3-pifacedigital-emulator

Use

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

Development Notes

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

bin/build_ui.sh

About

An emulator for the PiFace Digital board.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 97.8%
  • Shell 2.2%