Hardware switch to ground, with cpu internal pull-up. Software debounced. (1=switch pressed).
Digital input is commonly used to detect the state of switches and buttons. This block also includes the debouncing (See also: Debounce) of the switch or button.
See also: Example: A simple switch and LED.
Property | Description |
---|---|
Disabled | To disable or enable this block. |
Name | The name of this block. |
Invert | Invert the output |
Pin | Pin number. |
Comment | To optionally enter a comment. It does not impact the generated firmware. |