TinyGo 5 — I2C realtime monitor
TinyGo elective 5 — I2C realtime monitor
Elective · ~3h
Goal: Timed I2C (or mock) sampling with failure budget, UART status, optional LED health semantics.
Theory
| Concern | Practice |
|---|---|
| Address + registers | Datasheet-driven |
| Pull-ups / voltage | 3.3 V vs 5 V safety |
| Errors | Count failures; SAFE mode after N |
| Hot path | Reuse buffers; fixed rate |
Lab
I2C0.Configureat 100 kHz or mock path if no hardware.
- Sample every 200 ms; failure counter.
- UART status lines; LED slow/fast blink for health.
- Datasheet note or mock justification.
Full write-up: monorepo Go project 45.
Checkpoint
- Timed samples
- Failure counter
- Safety / mock note
After this elective
Return to main Go track (capstone or Stage VIII) or deepen embedded work via the Go book projects 41–45.