Page 1 of 1

sysfs gpio with active_low on startup

Posted: Monday 13 November 2017 18:38
by markzealey
I've got pull-up gpio switches on a pi; exporting like:

/usr/bin/gpio export 17 in; /usr/bin/gpio -g mode 17 up; echo 1 > /sys/class/gpio/gpio17/active_low

prior to starting domoticz. /sys/class/gpio/gpio17/value correctly shows 0 ; and if I toggle active_low false and then true again, domoticz registers the correct value. However when domoticz first starts up for some reason it registers the input value without the active_low toggling the value correctly. Any ideas?