User Tools

Site Tools


en-us_commands:reference:irtcalarmenable

This is an old revision of the document!


IrtcAlarmEnable()

IrtcAlarmEnable() enables or disables the specified alarm.

IrtcAlarmEnable command operation flow

bool IrtcAlarmEnable(uint8_t alarm, bool enable = true)

Commands

Command Arguments Return Value Operation
IrtcAlarmEnable(alarm, enable) uint8_t alarm
bool 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.

← Built-in Command List

en-us_commands/reference/irtcalarmenable.1788785567.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki