Go back to:
Switch
All switches/buttons support the following functions:
Method
- pressed
- Returns TRUE if the switch/button is pressed (closed) or FALSE if released (open).
- released
- Returns TRUE if the switch/button is released (open) or FALSE if pressed (closed).