Volt Docs

Volt documentation

Volt is a language for microcontroller firmware. You describe the hardware and what it should do, and the compiler checks every pin against the chip before anything is flashed.

Install Volt Your first program

main.volt
hardware {
    pin led: Output = 2
    pin button: PullUpInput = 23
    pin buzzer: PWM = 18
}

every 500ms {
    led.toggle()
}

every 20ms {
    if button.is_pressed() {
        buzzer.tone(880)
    } else {
        buzzer.no_tone()
    }
}

This is the real compiler, running in this page. Change the LED to = 34, or 500ms to 500, and see what it says.

Learn the language

Reference