en-us_commands:reference:irtcunixtime
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en-us_commands:reference:irtcunixtime [2026/09/07 21:52] – 만듦 - 바깥 편집 127.0.0.1 | en-us_commands:reference:irtcunixtime [2026/09/08 00:53] (current) – 바깥 편집 127.0.0.1 | ||
|---|---|---|---|
| Line 16: | Line 16: | ||
| <code cpp> | <code cpp> | ||
| - | uint32_t | + | void setup() { |
| - | if (IrtcUnixTime(timestamp)) { | + | Serial.begin(115200); |
| - | | + | if (!IrtcBegin()) return; |
| + | |||
| + | bool valid = false; | ||
| + | if (IrtcTimeValid(valid) && !valid) { // Check whether the RTC time is reliable. | ||
| + | IrtcSet(2026, | ||
| + | IrtcClearOscillatorStopFlag(); | ||
| + | } | ||
| + | } | ||
| + | |||
| + | void loop() { | ||
| + | IrtcDateTime now; | ||
| + | | ||
| + | float rtcTemperature = 0.0F; | ||
| + | | ||
| + | Serial.print(unixTime); | ||
| + | } | ||
| + | delay(1000); | ||
| } | } | ||
| </ | </ | ||
| Line 25: | Line 41: | ||
| Run each device' | Run each device' | ||
| + | |||
| + | ===== Built-in Commands in the Same Category ===== | ||
| + | |||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| [[: | [[: | ||
en-us_commands/reference/irtcunixtime.1788785568.txt.gz · Last modified: by 127.0.0.1
