piface / pifacedigitalio

The PiFace Digital input/output module.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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/

About

The PiFace Digital input/output module.

License:GNU General Public License v3.0


Languages

Language:Python 100.0%