-
Notifications
You must be signed in to change notification settings - Fork 11
PiFace
This is a How-To make the PiFace Digital 2 work with UP board, the support is Partial and allow only to set the exits but you can't read from the inputs. Lollokara has modified the PiFaceCommon library to add initial support for the UP board. Right now, you can get this version and install it by running the following commands on your UP board:
sudo apt-get update
sudo apt-get install -y python3 git
git clone https://github.com/lollokara/PiFace-UPboard.git
use cd to move into the two directories that you just downloaded and in each directory run
sudo python3 setup.py install
Then for testing the code you can use lunching python3:
from time import sleep
import pifacedigitalio
DELAY = 1.0 # seconds
if __name__ == "__main__":
pifacedigital = pifacedigitalio.PiFaceDigital()
while True:
pifacedigital.leds[7].toggle()
sleep(DELAY)
Please follow the instructions on,
NOTE: This wiki is the main source of documentation for developers working with (or contributing to) the UP products. If this is your first time hearing about UP, we recommend starting with our main UP website, and our UP community page.