Digital Output
R2026bSet logical state of digital output pin on Arduino
Libraries:
Simulink Support Package for Arduino Hardware /
Common
Description
Add-On Required: This feature requires the Simulink Support Package for Arduino Hardware add-on.
Use the Digital Ouptut block to set the logical state of the specified digital pin on the Arduino® board that you specify in the Pin number parameter.
During the external mode simulation, the block sets the value to the pin that you specify in the Pin number 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.
"arduinolib/Digital Output"
Example: add_block("arduinolib/Digital Output","myModel/myBlock",MakeNameUnique="on")
Version History
Introduced in R2012a