GPIO Write
Add-On Required: This feature requires the MATLAB Coder Support Package for NVIDIA Jetson and NVIDIA DRIVE Platforms add-on.
Libraries:
NVIDIA Jetson and NVIDIA DRIVE /
Basic
Description
Use this block to:
Create a physical output to a GPIO pin.
Receive the logical value from other blocks in the model as a stream of boolean values.
Write the logical value to a GPIO pin at intervals that are determined by Sample time.
Warning
You can damage your target hardware by:
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 R2021b