GPIOResource¶
GPIOResource
¶
GPIO channel management for PiKVM.
Source code in src/aiopikvm/resources/gpio.py
get_state()
async
¶
Get the current GPIO state.
Returns:
| Type | Description |
|---|---|
GPIOState
|
Current GPIO subsystem state with inputs and outputs. |
switch(channel, state)
async
¶
Set a GPIO output channel state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
channel
|
str
|
Channel name. |
required |
state
|
bool
|
Desired state ( |
required |
Source code in src/aiopikvm/resources/gpio.py
pulse(channel, delay=None)
async
¶
Send a pulse to a GPIO channel.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
channel
|
str
|
Channel name. |
required |
delay
|
float | None
|
Pulse duration in seconds ( |
None
|