mechanical-switch

xod/common-hardware/mechanical-switch

Represents a switch which suffers from bouncing when engaged or disengaged (e.g., reed switch, push-button, mercury switch, bumper switch, rocker switch).
mechanical-switch
@/mechanical-switch
Represents a switch which suffers from bouncing when engaged or disengaged (e.g., reed switch, push-button, mercury switch, bumper switch, rocker switch).
PORTport
The board port to which the sensor is connected. The built-in pull-up resistor is enabled on read
Tbnumber
The maximal time of signal bounce on a switch in seconds. Changes during this time window are ignored to settle down the contact
UPDpulse
Trigger sensor update, that is starts a new reading
mechanical-switch
VAL
OK
PORT
Tb
UPD
OKpulse
Pulses when a reading completes successfully
VALboolean
The last read value