784 B
784 B
Exercise 06: RTC Check (PCF8563)
This exercise validates RTC read/write and power-off persistence on the T-Beam Supreme.
It:
- Initializes PMU + I2C bus used by RTC.
- Reads RTC at startup.
- Prints RTC every 10 seconds.
- Accepts serial commands:
showset YYYY-MM-DD HH:MM:SShelp
Build
source /home/jlpoole/rnsenv/bin/activate
pio run -e node_a
Upload
source /home/jlpoole/rnsenv/bin/activate
pio run -e node_a -t upload --upload-port /dev/ttyACM0
Monitor
screen /dev/ttyACM0 115200
Suggested Persistence Test
- Set the RTC:
set 2026-02-14 17:30:00
- Confirm:
show
- Power off the unit for a few minutes.
- Power on and run:
show
- Compare expected elapsed time vs RTC output.