en-us_commands:reference:irtctimevalid
This is an old revision of the document!
Table of Contents
IrtcTimeValid()
Commands
| Command | Arguments | Return Value | Operation |
|---|---|---|---|
IrtcTimeValid(valid) | bool& valid | bool | Checks whether the RTC time is trustworthy. |
Example
bool valid; if (IrtcTimeValid(valid) && !valid) { // Check the power supply or battery and set the time again. }
Precautions
Run each device's corresponding Begin command first. Check I²C addresses and pin sharing; if the bool return value is false, inspect wiring and power.
en-us_commands/reference/irtctimevalid.1788785568.txt.gz · Last modified: by 127.0.0.1
