compile
Build an Arduino sketch for a specified board to verify code without hardware. Returns memory usage and compilation errors.
Instructions
Compile an Arduino sketch for a board. Verifies code without needing hardware. Returns memory usage and errors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fqbn | No | Board FQBN, e.g. 'arduino:avr:uno'. Omit if set via board-attach. | |
| verbose | No | Verbose compiler output (default false) | |
| libraries | No | Extra library root paths to include | |
| sketchPath | Yes | Path to sketch folder or .ino file, e.g. '/path/to/Arduino/Blink' | |
| boardOptions | No | Board options, e.g. 'cpu=atmega328old' for Nano | |
| additionalUrls | No | Extra board-manager URLs (ESP32 etc.) | |
| buildProperties | No | Extra -D flags, e.g. ['build.extra_flags=-DDEBUG=1'] |