commands:reference:irtcclearoscillatorstopflag
차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
| commands:reference:irtcclearoscillatorstopflag [2026/09/01 20:04] – 만듦 - 바깥 편집 127.0.0.1 | commands:reference:irtcclearoscillatorstopflag [2026/09/08 00:53] (현재) – 바깥 편집 127.0.0.1 | ||
|---|---|---|---|
| 줄 11: | 줄 11: | ||
| ^ 명령어 ^ 인수 ^ 반환값 ^ 동작 ^ | ^ 명령어 ^ 인수 ^ 반환값 ^ 동작 ^ | ||
| | '' | | '' | ||
| + | |||
| ===== 예제 ===== | ===== 예제 ===== | ||
| <code cpp> | <code cpp> | ||
| - | struct IrtcDateTime | + | void setup() |
| - | | + | |
| - | | + | |
| - | uint8_t day; | + | |
| - | uint8_t dayOfWeek; | + | |
| - | uint8_t hour; | + | |
| - | uint8_t minute; | + | |
| - | uint8_t second; | + | |
| - | }; | + | |
| - | bool IrtcBegin(); | + | |
| - | bool IrtcRead(IrtcDateTime& dateTime); | + | |
| - | bool IrtcSet(uint16_t year, uint8_t month, uint8_t day, uint8_t hour, | + | IrtcSet(2026, 9, 7, 9, 0, 0); // RTC의 날짜와 시간을 설정합니다. |
| - | | + | |
| - | bool IrtcSet(uint16_t year, uint8_t month, uint8_t day, uint8_t dayOfWeek, | + | } |
| - | uint8_t hour, uint8_t minute, uint8_t second); | + | } |
| - | bool IrtcUnixTime(uint32_t& unixTime); | + | |
| - | bool IrtcGetTemperature(float& temperature); | + | void loop() { |
| - | bool IrtcTimeValid(bool& valid); | + | IrtcDateTime now; |
| - | bool IrtcClearOscillatorStopFlag(); | + | |
| + | float rtcTemperature = 0.0F; | ||
| + | if (IrtcRead(now) && | ||
| + | Serial.print(unixTime); | ||
| + | } | ||
| + | delay(1000); | ||
| + | } | ||
| </ | </ | ||
| 줄 40: | 줄 41: | ||
| 각 장치는 해당 '' | 각 장치는 해당 '' | ||
| + | |||
| + | ===== 같은 카테고리의 내장 명령어 ===== | ||
| + | |||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| [[commands: | [[commands: | ||
commands/reference/irtcclearoscillatorstopflag.1788260661.txt.gz · 마지막으로 수정됨: 저자 127.0.0.1
