button

xod/common-hardware/button

Reads a generic button or another mechanical switch. It is expected that the button is low while pressed, the on-board pull-up resistor is enabled if possible. The node provides signal debounce with 20 ms settle delay. Possible errors: — Invalid port
button
@/button
Reads a generic button or another mechanical switch. It is expected that the button is low while pressed, the on-board pull-up resistor is enabled if possible. The node provides signal debounce with 20 ms settle delay. Possible errors: — Invalid port
PORTport
Board port number the button is connected to.
UPDpulse
Triggers new read
button
PRS
DONE
PORT
UPD
DONEpulse
Fires on reading complete
PRSboolean
Last read value. Equals to `true` while the button is pressed (hold down) and `false` while it is released.