commands:reference:irtcunixtime
차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
| commands:reference:irtcunixtime [2026/09/01 20:04] – 만듦 - 바깥 편집 127.0.0.1 | commands:reference:irtcunixtime [2026/09/08 00:53] (현재) – 바깥 편집 127.0.0.1 | ||
|---|---|---|---|
| 줄 11: | 줄 11: | ||
| ^ 명령어 ^ 인수 ^ 반환값 ^ 동작 ^ | ^ 명령어 ^ 인수 ^ 반환값 ^ 동작 ^ | ||
| | '' | | '' | ||
| + | |||
| ===== 예제 ===== | ===== 예제 ===== | ||
| <code cpp> | <code cpp> | ||
| - | uint32_t | + | void setup() { |
| - | if (IrtcUnixTime(timestamp)) { | + | Serial.begin(115200); |
| - | | + | if (!IrtcBegin()) return; |
| + | |||
| + | bool valid = false; | ||
| + | if (IrtcTimeValid(valid) && !valid) { // RTC 시간이 신뢰 가능한 상태인지 확인합니다. | ||
| + | IrtcSet(2026, | ||
| + | IrtcClearOscillatorStopFlag(); | ||
| + | } | ||
| + | } | ||
| + | |||
| + | void loop() { | ||
| + | IrtcDateTime now; | ||
| + | | ||
| + | float rtcTemperature = 0.0F; | ||
| + | | ||
| + | Serial.print(unixTime); | ||
| + | } | ||
| + | delay(1000); | ||
| } | } | ||
| </ | </ | ||
| 줄 24: | 줄 41: | ||
| 각 장치는 해당 '' | 각 장치는 해당 '' | ||
| + | |||
| + | ===== 같은 카테고리의 내장 명령어 ===== | ||
| + | |||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| [[commands: | [[commands: | ||
commands/reference/irtcunixtime.1788260661.txt.gz · 마지막으로 수정됨: 저자 127.0.0.1
