TinyGo 5 — I2C realtime monitor

Updated

July 30, 2026

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

  1. I2C0.Configure at 100 kHz or mock path if no hardware.
  2. Sample every 200 ms; failure counter.
  3. UART status lines; LED slow/fast blink for health.
  4. 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.