Limit Switch#
Introduction#
The Limit Switch is a small digital sensor that detects physical contact with an object.

Below is a list of available blocks:
Limit Switch pressed? – Returns whether the specified Limit Switch is currently pressed.
when Limit Switch – Runs the attached stack of blocks when the specified Limit Switch is pressed or released.
Limit Switch pressed?#
The Limit Switch pressed? block returns a Boolean indicating whether the Limit Switch is currently being pressed.
True – The Limit Switch is being pressed.
False – The Limit Switch is not being pressed.
<[LimitSwitchA v] presionado?>
Parameter |
Description |
|---|---|
device |
Which Limit Switch to use, configured in the Devices window. |
when Limit Switch#
The when Limit Switch block runs the attached stack when the specified Limit Switch is pressed or released.
cuando [LimitSwitchA v] [presionado v] :: hat events
Parameter |
Description |
|---|---|
device |
Which Limit Switch to use, configured in the Devices window. |
state |
When to run the attached stack of blocks:
|