Volt Docs

Reference

volt.toml

The project file next to main.volt that says which chip you're building for.

Every project has a volt.toml beside its main.volt:

volt.toml
[project]
chip = "esp32"

Settings

SettingWhat it does
chipThe chip to check and build for. Required.
nameThe firmware’s name. Defaults to the folder’s name.
optimizeHow the C compiler optimises: debug, size or speed. volt build --optimize overrides it.

Chips

chipAlso acceptedBoards
esp32esp32-wroomESP32-DevKitC and other ESP32-WROOM boards
esp8266esp12NodeMCU, Wemos D1 mini and other ESP-12 boards
rp2040picoRaspberry Pi Pico

The chip isn’t written in main.volt, so the same program can be checked against another chip by changing one line. Pins, buses and features are checked against the chip you choose: an ESP8266 has no DAC and no Bluetooth, an RP2040 has no Wi-Fi.