GPIO Write
Set GPIO pin status
Add-On Required: This feature requires the Simulink Support Package for Raspberry Pi Hardware add-on.
Libraries:
Simulink Support Package for Raspberry Pi Hardware /
Basic
Description
Use the GPIO Write block to set the logical value of a digital pin of your Raspberry Pi® board.
Warning
You can damage your target hardware by:
Exceeding the maximum voltage that can be applied to GPIO pins.
Shorting a GPIO pin to ground.
Shorting a GPIO pin with high voltage to another GPIO pin with low voltage.
Connecting a GPIO pin to a voltage source greater than the maximum voltage.
Exceeding the maximum current by driving multiple GPIO pins high simultaneously.
Ports
Input
Parameters
Version History
Introduced in R2013a