Skip to main content

Module gpio

Module gpio 

Expand description

GPIO tools — gpio_read and gpio_write for LLM-driven hardware control.

Structs§

GpioReadTool
Tool: read the current HIGH/LOW state of a GPIO pin on a connected device. The LLM provides device (alias) and pin. The tool builds a ZcCommand, sends it via the device’s transport, and returns the pin state.
GpioWriteTool

Functions§

gpio_tools
Create the built-in GPIO tools for a given device registry. Returns [GpioWriteTool, GpioReadTool] ready for registration in the agent’s tool list or a future ToolRegistry.