en-us_commands:reference:irtcset
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en-us_commands:reference:irtcset [2026/09/07 21:52] – 만듦 - 바깥 편집 127.0.0.1 | en-us_commands:reference:irtcset [2026/09/08 00:53] (current) – 바깥 편집 127.0.0.1 | ||
|---|---|---|---|
| Line 19: | Line 19: | ||
| void setup() { | void setup() { | ||
| Serial.begin(115200); | Serial.begin(115200); | ||
| + | if (!IrtcBegin()) return; | ||
| - | if (!IrtcBegin()) { | + | |
| - | | + | |
| - | | + | |
| + | | ||
| } | } | ||
| - | |||
| - | // Run once initially, then comment out. | ||
| - | // IrtcSet(2026, | ||
| } | } | ||
| void loop() { | void loop() { | ||
| IrtcDateTime now; | IrtcDateTime now; | ||
| - | if (IrtcRead(now)) { | + | |
| - | Serial.print(now.year); | + | float rtcTemperature = 0.0F; |
| - | Serial.print('/' | + | |
| - | Serial.print(now.month); | + | Serial.print(unixTime); Serial.print(' |
| - | Serial.print(' | + | |
| - | Serial.print(now.day); | + | |
| - | Serial.print(' | + | |
| - | Serial.print(now.hour); | + | |
| - | | + | |
| - | Serial.print(now.minute); | + | |
| - | Serial.print(':' | + | |
| - | | + | |
| } | } | ||
| delay(1000); | delay(1000); | ||
| Line 51: | Line 42: | ||
| Run each device' | Run each device' | ||
| + | |||
| + | ===== Built-in Commands in the Same Category ===== | ||
| + | |||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| [[: | [[: | ||
en-us_commands/reference/irtcset.1788785568.txt.gz · Last modified: by 127.0.0.1
