Push Button
Read logical state of Push button
Add-On Required: This feature requires the Simulink Coder Support Package for NXP FRDM-K64F Board add-on.
Libraries:
Simulink Coder Support Package for NXP FRDM-K64F Board
Description
The Push Button block reads the logical state
(pressed or released) of the push buttons, SW2 or SW3, that are available
on the FRDM-K64F board. The SW2 button is connected to the PTC6 pin
on the board. The SW3 button is connected to the PTA4 pin on the board.
When the switch is pressed, the block outputs 1
.
Otherwise it outputs 0
.
Ports
Output
Parameters
Version History
Introduced in R2016b