Files
didakta-rust-on-robots/tutorial/06-button-input/README.md
2026-03-08 19:41:38 +01:00

388 B

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.