New button template
This commit is contained in:
11
README.md
11
README.md
@@ -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.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user