Files
anvil/templates/button/template.toml
Eric Ratliff e12608370a
Some checks failed
CI / Test (Linux) (push) Has been cancelled
CI / Test (Windows MSVC) (push) Has been cancelled
CI / Clippy (push) Has been cancelled
CI / Format (push) Has been cancelled
New button template
2026-02-22 17:06:02 -06:00

26 lines
589 B
TOML

[template]
name = "button"
base = "basic"
description = "Pushbutton input with edge detection and serial output"
[requires]
libraries = ["button"]
board_capabilities = ["digital"]
# Default pin assignments per board.
# Pin 2 supports interrupts on most boards, good default for buttons.
[pins.default]
button_signal = { pin = "2", mode = "input" }
[pins.uno]
button_signal = { pin = "2", mode = "input" }
[pins.mega]
button_signal = { pin = "2", mode = "input" }
[pins.nano]
button_signal = { pin = "2", mode = "input" }
[pins.leonardo]
button_signal = { pin = "2", mode = "input" }