LCD Button
Read logical state of selected push button on LCD Display Module
Add-On Required: This feature requires the Simulink Coder Support Package for ARM Cortex-based VEX Microcontroller add-on.
Libraries:
Simulink Coder Support Package for ARM Cortex-based VEX
Microcontroller/LCD
Description
The LCD Button block reads the logical state of the selected push button on the LCD Display Module. To select a push button, use the Button parameter.
The block output is 1 while the button is pressed. The block output is 0 while the button is released.
There are three buttons on the LCD Display Module: Left, Center, and Right. To control the peripherals, such as a servo motor that is connected to the VEX microcontroller, use the values from these buttons.
During simulations, without the hardware, this block emits zeroes if there is no source block connected to the simulation input port. See Block Produces Zeros or Does Nothing in Simulation. To achieve simulation, connect a source block from the Utilities library in VEX microcontroller library.
During code generation, any simulation block that is connected to the input port of the LCD Button block is ignored and has no effect on the generated code.
Ports
Input
Output
Parameters
Version History
Introduced in R2017a