Description
The GPIO Read component is used to read the state of GPIO pins.
Retrieves the current logic level (0 or 1) of the specified pin. It can be primarily used to check the pin state after GPIO Write execution. It can also be used to read the state of input devices such as switches.
Limitation: This component only works on linux/arm64 environments.
If executed on unsupported platforms, an error message "component not supported on XX" will be displayed.When using Raspberry Pi, please use RPI4+Ubuntu 24.04.2 LTS.
Output Payload | Description |
---|---|
cv.Payload | Outputs a numeric value of 0 or 1 as the component output |
Component Properties
Property Name | Description |
---|---|
Pin Name1 | Specifies the name of the GPIO pin to control |
1 Pin name format varies by device.
• Raspberry Pi: GPIO number (e.g., GPIO16, GPIO6, etc.)
• Jetson Orin Nano: SoC GPIO port name (e.g., PQ.06, PH.00, etc.)For detailed pin layouts, please refer to the following documents:
Jetson Orin Nano