Skip to content

Lab 1 Check

sh
machinelab test rtc
machinelab run --headless --rtc 2026-06-16T12:34:56 -- build/examples/rtc_date

Discussion Prompts

  • Why does rtc_read_date receive a pointer instead of returning a struct?
  • What can go wrong if the date changes between reading day, month, and year?
  • Which helper belongs in labs/rtc/ and which belongs in lib/rtc/?

External Reading

Course/docs licensed CC BY 4.0. Code licensed MIT.