ftdi_gpio_control
Reads or writes GPIO pins on FTDI USB bridges such as FT232H/FT2232H, enabling direction-mask setup and digital output or input-state monitoring.
Instructions
Read or write GPIO pins directly on an FTDI USB bridge (e.g. FT232H, FT2232H).
Args: ftdi_url: PyFtdi device URL (default 'ftdi:///1' for first connected FTDI device). direction_mask: 8-bit bitmask where 1 = Output, 0 = Input (e.g., 0xFF = all outputs, 0x01 = pin 0 output). write_value: Optional 8-bit value to drive on output pins (0x00 to 0xFF). Always reads back current pin states.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ftdi_gpio_control"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ftdi_url | No | ftdi:///1 | |
| write_value | No | ||
| direction_mask | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||