New button template
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

This commit is contained in:
Eric Ratliff
2026-02-22 17:06:02 -06:00
parent 578b5f02c0
commit e12608370a
9 changed files with 898 additions and 5 deletions

View File

@@ -63,11 +63,14 @@ point, use a composed template:
```bash
anvil new weather_station --template weather --board uno
anvil new clicker --template button --board uno
```
The weather template builds on basic, adding a `WeatherApp` with a TMP36
temperature sensor driver, managed example tests demonstrating both mock and
simulator patterns, and student test starters. To see available templates:
The **weather** template adds a `WeatherApp` with a TMP36 temperature sensor,
managed example tests, and student test starters. The **button** template adds
a `ButtonApp` with edge detection that prints "Button pressed!" to the serial
monitor each time you press a button -- no repeated messages from holding it
down. Both templates include mock and simulator patterns. To see all options:
```bash
anvil new --list-templates
@@ -437,7 +440,7 @@ Upload these to a Gitea release. The script requires `build-essential`,
cargo test
```
615 tests (137 unit + 478 integration), ~4 seconds, zero warnings.
642 tests (137 unit + 505 integration), ~4 seconds, zero warnings.
---