GPIO
GPIO(etp)
GPIO class.
Methods:
| Name | Description |
|---|---|
get_info |
Get GPIO port and pin information. |
init |
Initialize GPIO pins with the given configuration. |
read |
Read GPIO pins provided as list. |
write |
Write GPIO pins provided as dictionary. |
get_info
get_info() -> dict
Get GPIO port and pin information.
| Returns: |
|
|---|
Dictionary format
port_count(int): Number of GPIO ports.info(list): List of dictionaries containing GPIO port and pin information.port(str): GPIO port identifier.pins(int): GPIO pins available in the port.
init
init(pin_list: dict) -> int
Initialize GPIO pins with the given configuration.
| Parameters: |
|
|---|
| Returns: |
|
|---|