Write and compile firmware
set_firmwareArduino firmware for the design's microcontroller board: compiles (30-180 s, may return running) and prepares the simulator. Returns compile errors. Costs credits. Requires a PCBBrew account (sign-in).
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": {
"project_id": "<project_id>",
"sketch": "<sketch>"
},
"name": "set_firmware"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hmi | No | ||
| sketch | Yes | ||
| libraries | No | ||
| project_id | Yes | id from create_project or list_projects |