Main Content
Touch Sensor
Detect status of EV3 brick touch sensor
Add-On Required: This feature requires the Simulink Support Package for LEGO MINDSTORMS EV3 Hardware add-on.
Libraries:
Simulink Support Package for LEGO MINDSTORMS EV3 Hardware
Description
Use the Touch Sensor block to detect whether the touch sensor connected to the LEGO® MINDSTORMS® EV3 brick is pressed or not.
During simulations without hardware, this block emits zeros. See Block Produces Zeros or Does Nothing in Simulation.
Examples
Ports
Output
Parameters
Version History
Introduced in R2012a
See Also
Open Block Library for LEGO MINDSTORMS EV3 Hardware | Display | Run Model on EV3 Hardware