Digital Write
R2026bSet logical state of digital output pin
Libraries:
STM32 Microcontroller Blockset /
(Legacy) STM32 MBED Based Boards /
Common
STM32 Microcontroller Blockset /
(Legacy) STM32 MBED Based Boards /
STM32F746G-Discovery
STM32 Microcontroller Blockset /
(Legacy) STM32 MBED Based Boards /
STM32F769I-Discovery
STM32 Microcontroller Blockset /
(Legacy) STM32 MBED Based Boards /
STM32L475VG-Discovery (B-L475E-IOT01A)
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.
Ports
Input
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"stm32nucleodiscoboardslib/Common/Digital Write"
"stm32f7lib/Digital Write"
"stm32f769ilib/Digital Write"
"stm32l475vglib/Digital Write"
Example: add_block("stm32nucleodiscoboardslib/Common/Digital Write","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2018a