GPIO Read
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 input from a GPIO pin.
Read the logical value of the GPIO pin at intervals that are determined by Sample time.
Send the logical value to other blocks in the model as a stream of boolean values.
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
Output
Parameters
Version History
Introduced in R2021b