en-us_commands:reference:irtcalarmenable
This is an old revision of the document!
Table of Contents
IrtcAlarmEnable()
IrtcAlarmEnable() enables or disables the specified alarm.
bool IrtcAlarmEnable(uint8_t alarm, bool enable = true)
Commands
| Command | Arguments | Return Value | Operation |
|---|---|---|---|
IrtcAlarmEnable(alarm, enable) | uint8_t alarmbool enable = true | bool | Enables or disables the specified alarm. |
Example
// Alarm 1 every day at 08:30:00 IrtcSetAlarm1(IRTC_ALARM1_MATCH_HOUR_MINUTE_SECOND, 1, 8, 30, 0); IrtcAlarmEnable(1, true);
Precautions
Run each device's corresponding Begin command first. Check I²C addresses and pin sharing; if the bool return value is false, inspect wiring and power.
en-us_commands/reference/irtcalarmenable.1788785567.txt.gz · Last modified: by 127.0.0.1
