• Stars
    star
    110
  • Rank 314,861 (Top 7 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created over 11 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The PiFace Digital input/output module.

pifacedigitalio

The PiFace Digital Input/Output module (PyPI).

Use this module to use PiFace Digital and PiFace Digital 2 hardware in Python3

Install

Make sure you are using the lastest version of Raspbian:

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

Enable SPI (e.g. use raspi-config)

$ sudo raspi-config

select `Interface Options` > `SPI` > `Yes` and then select `Finish`

If you need to install pip3

$ sudo apt install python3-pip

Install pifacedigitalio with the following command:

Python 3:
$ sudo pip3 install pifacecommon
$ sudo pip3 install pifacedigitalio

Examples

To run an example program clone this repo

$ git clone https://github.com/piface/pifacedigitalio.git

Test by running the blink.py program:

$ python3 pifacedigitalio/examples/blink.py

Documentation

http://pifacedigitalio.readthedocs.org/