Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/piface/pifacedigitalio
The PiFace Digital input/output module.
https://github.com/piface/pifacedigitalio
Last synced: 20 days ago
JSON representation
The PiFace Digital input/output module.
- Host: GitHub
- URL: https://github.com/piface/pifacedigitalio
- Owner: piface
- License: gpl-3.0
- Created: 2013-02-05T13:15:35.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2021-09-15T16:14:46.000Z (about 3 years ago)
- Last Synced: 2024-11-16T03:03:15.612Z (28 days ago)
- Language: Python
- Homepage:
- Size: 1.04 MB
- Stars: 111
- Watchers: 18
- Forks: 48
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- License: COPYING
Awesome Lists containing this project
README
pifacedigitalio
===============
The PiFace Digital Input/Output module ([PyPI](https://pypi.python.org/pypi/pifacedigitalio/)).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 upgradeEnable 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* Notice 1: Installation from Raspbian repository with apt is not longer the preferred way, take a look into [https://github.com/piface/pifacecommon/issues/27#issuecomment-451400154](issue 27)
* Notice 2: Python 2 support is "end-of-life" since Jan 2020, refer to https://www.python.org/doc/sunset-python-2/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/](http://pifacedigitalio.readthedocs.org/)