WiringPi

WiringPi is a GPIO access library written in C for the BCM2835 used in the Raspberry Pi.

DomotiGa has a WiringPi plugin to work with it, developed by epiniguin, checked in in the beta branch with for DomotiGa with commit commit:d7115379 and will be released with DomotiGa 1.0.017.

Installation

Download, build and install the WiringPi library:

http://wiringpi.com/download-and-install/

Before trying to use DomotiGa to control things, it is a good thing to try if things work with a simple application like Blink:

http://wiringpi.com/examples/blink/

Configuration

You can enable WiringPi using the Setup window you can find under Interfaces -> Input/Output -> WiringPi:

Then add a device and set the Type to WiringPi:

 

WiringPI address examples

For MCP23017:

mcp23017:100:0x21|109

For MCP3428:
mcp3428:100:105:0:0|103

0:0 are sample rate(0-2) and gain(0-3), 105=0x69 because WiringPI doesn't work normally with hex addresses more than 0x40 - I don't know why.

Resources

Updated by: danfos, Updated almost 5 years ago
Access count: 51231 since 2014-09-01

Attached Files