openhab / openhab1-addons

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

piface script ohpiface.py should initialize switchable input pullups #1361

Closed robbyb67 closed 8 years ago

robbyb67 commented 10 years ago

The open collector input pins on the piface are extremely sensitive. If these pullups are switched off, wiring with slightly longer wires will trigger the inputs very fast between open/close if contact is open.

It would be a great help and simple enhancement if the initial state of the pullup resistors could be configured per input in ohpiface.conf

Proposal: A 8 bit value like

PULLUPS=0xFF

initializes all 8 input pullups to 1 using _digital_write_pullup(pinnumber, state).

hmerk commented 8 years ago

closed due to lack of activity