Missing command "gpio" in WiringPi package.
AudiculaPi - the tiny media server for your Raspberry Pi
Brought to you by:
irimi
Hi, the code of domoticz is using library of WiringPi but also the command "gpio" which is not included in the WiringPi package can you please add it.
// 1. List exports and parse the result
cmd = popen("gpio exports", "r");
while (fgets(buf, sizeof(buf), cmd) != 0) {
// Decode GPIO pin number from the output formatted as follows:
//
// GPIO Pins exported:
// 17: out 0 none
// 18: in 1 none
//
// 00000000001111111111
// 01234567890123456789
// 2. List the full pin set and parse the result
cmd = popen("gpio readall", "r");
Confirmed.
But gpio build depends on PiFace package, which is still unsupported
as a workaround I wrote simple bash script in location /usr/bin/gpio
!/bin/bash
if [ $1 = "exports" ]; then
cat /root/gpio1.txt
else
cat /root/gpio.txt
fi
where this txt file are output from raspberry where gpio command was installed and GPIO pins where set in the same way.
Last edit: kofec 2015-02-17
Hi,
I found that in
https://sourceforge.net/p/atomproducts/svn/HEAD/tree/trunk/feeds/non-atom/
there is wiringPi package with gpio