spi_config
Sets the SPI pin map (MOSI, MISO, SCLK, CS, optional WP/HOLD) and clock frequency from 1–80 MHz, persisting the configuration in NVS.
Instructions
Set the SPI pin map (MOSI/MISO/SCLK/CS GPIO, frequency 1-80 MHz, optional WP/HOLD pins). NVS-persisted by the firmware. [allowed-write] [Duration: fast (~2-4 s).]
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": {
"mosi": "<mosi>",
"miso": "<miso>",
"sclk": "<sclk>",
"cs": "<cs>",
"freq_mhz": "<freq_mhz>"
},
"name": "spi_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cs | Yes | CS GPIO | |
| wp | No | WP GPIO or -1 | |
| hold | No | HOLD GPIO or -1 | |
| miso | Yes | MISO GPIO | |
| mosi | Yes | MOSI GPIO | |
| sclk | Yes | SCLK GPIO | |
| freq_mhz | Yes | SPI clock 1-80 MHz |