Skip to content

This program reads & sets pins of the PiFace board, without requiring additional dependencies. It includes a slightly modified version of the C library in https://github.com/thomasmacpherson/piface

License

Notifications You must be signed in to change notification settings

pierinz/piface_tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

piface_tool

This program reads & sets pins of the piface board, without requiring additional dependencies.
It includes a slightly modified version of the C library in https://github.com/thomasmacpherson/piface

Installation

The PiFace board communicates with the Raspberry Pi using the SPI interface.
Ensure the SPI module is loaded: modprobe spi-bcm2708.
Refer to https://github.com/thomasmacpherson/piface/blob/master/README.md#installation-and-setup for additional details about SPI module.

The program itself is installed as usual:

  • download the sources
  • cd to the source directory
  • launch "make"
  • launch "make install"

piface_tool is now available at /usr/local/sbin/piface_tool. You can change the "prefix" to install it elsewhere:

  • launch "make prefix=/usr install" to install in /usr/sbin

How to use it

Usage: piface_tool [options] pin_number [in|out [value]]
Read/Set the piface pins.
Pin '8' is a shortcut for all pins.

  • -n Force no init (use if other programs are using the piface)
  • -v Verbose
  • -h Show this message

About

This program reads & sets pins of the PiFace board, without requiring additional dependencies. It includes a slightly modified version of the C library in https://github.com/thomasmacpherson/piface

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published