47 lines
1.0 KiB
Markdown
47 lines
1.0 KiB
Markdown
# Examples
|
|
|
|
Each example is its own Cargo package.
|
|
|
|
## Packages
|
|
|
|
- `blinky-basic` - simple delay, simple LED ownership story
|
|
- `blinky-timer` - periodic blink with a timer abstraction
|
|
- `button-input` - poll the center button on `PA8`, mirror state to `PC13`, log transitions
|
|
- `embassy-blinky` - minimal Embassy executor and async blink
|
|
- `embassy-button` - minimal Embassy polling loop for the center button on `PA8`
|
|
- `embassy-rgb-check` - simple RGB on/off check on `PA1`/`PA2`/`PA3`
|
|
- `embassy-rgb` - async RGB PWM animation on `PA1`/`PA2`/`PA3`
|
|
|
|
## Build One Example
|
|
|
|
```bash
|
|
just build-blinky
|
|
just build-timer
|
|
just build-button
|
|
just build-embassy-blinky
|
|
just build-embassy-button
|
|
just build-embassy-rgb
|
|
just build-embassy-rgb-check
|
|
```
|
|
|
|
## Flash One Example
|
|
|
|
```bash
|
|
just flash-blinky
|
|
just flash-timer
|
|
just flash-button
|
|
just flash-embassy-blinky
|
|
just flash-embassy-button
|
|
just flash-embassy-rgb
|
|
just flash-embassy-rgb-check
|
|
```
|
|
|
|
## Run With Logs
|
|
|
|
```bash
|
|
just run-blinky
|
|
just run-embassy-blinky
|
|
just run-embassy-rgb
|
|
just run-embassy-rgb-check
|
|
```
|