Read logical state of digital input pin
Simulink Coder Support Package for BBC micro:bit/Basic
Simulink Coder Support Package for STMicroelectronics Nucleo Boards/ Common
Simulink Coder Support Package for STMicroelectronics Discovery Boards/ STM32F746G-Discovery
Simulink Coder Support Package for STMicroelectronics Discovery Boards/ STM32F769I-Discovery
The Digital Read block outputs the logical state of a specified digital pin on the board.
During the external mode simulation, the block outputs the simulation results returned from the executable running on the target hardware.
During simulation in all other modes, the block outputs zeroes.