Digital Write
Set logical state of digital output pin
Libraries:
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
Description
The Digital Write block sets the logical state of the specified digital pin on the board.
During the external mode simulation, the block sets the value to the pin that you specify in the Pin parameter.
During simulation in all other modes, the block does nothing.