gpio_read
Configures a specified pin as an input and reads its digital value, including the USER button, for board I/O in Facedancer mode.
Instructions
Configure a pin as input and read it. 'USER' reads the user button. Requires facedancer mode.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pin": "<pin>"
},
"name": "gpio_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pin | Yes | Pin name, e.g. 'A1' or 'USER' (user button). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||