21 lines
388 B
Markdown
21 lines
388 B
Markdown
# 06 - Button Input (6 min)
|
|
|
|
## Goal
|
|
|
|
Button an PA0 (Pull-up) lesen und Press/Release als Log ausgeben.
|
|
|
|
## Run
|
|
|
|
- `bash scripts/run-step.sh 06 task`
|
|
|
|
## Tasks
|
|
|
|
1. Verdrahtung prüfen: PA0 -> Button -> GND.
|
|
2. Starte `task` und beobachte Logs.
|
|
3. Passe Polling-Intervall an.
|
|
|
|
## Done when
|
|
|
|
1. Pressed/Released wird korrekt erkannt.
|
|
2. Keine Flut von Wiederhol-Logs bei gehaltenem Taster.
|