commands:reference:irtcalarmenabled
차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
| commands:reference:irtcalarmenabled [2026/09/01 20:04] – 만듦 - 바깥 편집 127.0.0.1 | commands:reference:irtcalarmenabled [2026/09/08 00:53] (현재) – 바깥 편집 127.0.0.1 | ||
|---|---|---|---|
| 줄 11: | 줄 11: | ||
| ^ 명령어 ^ 인수 ^ 반환값 ^ 동작 ^ | ^ 명령어 ^ 인수 ^ 반환값 ^ 동작 ^ | ||
| | '' | | '' | ||
| + | |||
| ===== 예제 ===== | ===== 예제 ===== | ||
| <code cpp> | <code cpp> | ||
| - | bool IrtcAlarmEnable(uint8_t alarm, bool enable = true); | + | void setup() { |
| - | bool IrtcAlarmEnabled(uint8_t alarm, bool& enabled); | + | Serial.begin(115200); |
| - | bool IrtcAlarmTriggered(uint8_t alarm, bool& triggered, bool clear = true); | + | if (!IrtcBegin()) return; |
| + | IrtcSetAlarm1(IRTC_ALARM1_MATCH_HOUR_MINUTE_SECOND, | ||
| + | IrtcSetAlarm2(IRTC_ALARM2_MATCH_HOUR_MINUTE, | ||
| + | | ||
| + | | ||
| + | } | ||
| + | |||
| + | void loop() { | ||
| + | | ||
| + | bool alarm1Triggered = false; | ||
| + | | ||
| + | if (alarm1Enabled && | ||
| + | Serial.println(F(" | ||
| + | } | ||
| + | delay(50); | ||
| + | } | ||
| </ | </ | ||
| 줄 23: | 줄 39: | ||
| 각 장치는 해당 '' | 각 장치는 해당 '' | ||
| + | |||
| + | ===== 같은 카테고리의 내장 명령어 ===== | ||
| + | |||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| + | * [[commands: | ||
| [[commands: | [[commands: | ||
commands/reference/irtcalarmenabled.1788260661.txt.gz · 마지막으로 수정됨: 저자 127.0.0.1
