openhab / openhab1-addons

Add-ons for openHAB 1.x
Eclipse Public License 2.0
3.43k stars 1.71k forks source link

[GPIO] Add internal pullup resistors configuration #5431

Open Chanete opened 6 years ago

Chanete commented 6 years ago

This is a feature request. It would be nice to add to the GPIO binding the possibility to configure the internal pullup resistors behavior from the item configuration. Something like this.

Contact whatever {gpio=“pin:13 pullup:High”}

Thx!

JSurf commented 6 years ago

Problem is, the gpio binding is using /sys/class/gpio to communicate with the pins. Setting the pullups is only available via native wiringpi library which is currently not used. As far as i know there is no way to setup pullups via /sys filesystem.

JSurf commented 6 years ago

Seems there is some work on a new binding

4976

https://github.com/openhab/openhab2-addons/pull/1334