General information about Digital Output
A 'Digital Output' block sets the output level of the selected pin. If the input is '1' the output is high, if the input is '0' the output is low.
Block inputs (inports)
The value of the output, 1 means the output will be high, 0 means it will be low.
|Output pin||The output pin to be used for the digital output. Select one from the list. A warning will appear when the pin is already in use in another block.|
|Configuration|| The configuration to be used. There are two options:|
- Open drain, the pin can only switch to ground not to 3.3V
|Sample time||Sample time of the block. The Sample time (in seconds) defines the rate at which the block is visited by the real-time scheduler of the target. The value of the Sample time has to be an integer multiple of the base sample time of the model.|
See the template model for an example how to toggle the LED with this block.