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 d7115379 and will be released with DomotiGa 1.0.017.


Download, build and install the WiringPi library:


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



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:

  • The Device can be:
    • RaspberryPi I/O, RaspberryPi I/O Inverted or
    • WiringPi I/O and WiringPi I/O Inverted
  • The Interface is fixed
  • Address:
    • <pin> for normal RapberryPI GPIO
    • <wiringpi>:<baseaddr>:<i2caddr>[:additional options]|<pin> for WiringPI extensions.
  • For the remaining fields and tabs, see Devices.

WiringPI address examples

For MCP23017:


For MCP3428:

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.


Updated by: danfos, Updated about 4 years ago
Access count: 50276 since 2014-09-01

Attached Files

wiringpi_mcp3428.jpg - MCP3428 device (43.3 KB) epiniguin, 08/30/2014 03:35 PM

wiringpi_mcp23017.jpg - MCP23017 device (43.8 KB) epiniguin, 08/30/2014 03:35 PM

domotiga_wiringpi.zip - WiringPI plugin src (33.7 KB) epiniguin, 08/30/2014 03:36 PM

fsettings_wiringpi.zip - WiringPI settings src (1.46 KB) epiniguin, 08/30/2014 03:36 PM

Setup_WiringPi.png (18.5 KB) danfos, 09/14/2014 12:57 PM

Add_Device_WiringPi.png (39.8 KB) danfos, 09/14/2014 01:02 PM

Also available in: PDF HTML TXT