GPIO Read
Read GPIO pin status
Libraries:
Raspberry Pi Blockset /
Basic
Description
Use the GPIO Read block to read 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.
Note
To generate code C/C++ code for this block, you must have an Embedded Coder® license.
Examples
Ports
Output
Parameters
Extended Capabilities
Version History
Introduced in R2013a
