User Tools

Site Tools


en-us_commands:reference:irtcalarmtriggered

This is an old revision of the document!


IrtcAlarmTriggered()

IrtcAlarmTriggered() checks whether an alarm has triggered and optionally clears its status.

IrtcAlarmTriggered command operation flow

bool IrtcAlarmTriggered(uint8_t alarm, bool& triggered, bool clear = true)

Commands

Command Arguments Return Value Operation
IrtcAlarmTriggered(alarm, triggered, clear) uint8_t alarm
bool& triggered
bool clear = true
bool Checks whether an alarm has triggered and optionally clears its status.

Example

bool IrtcAlarmEnable(uint8_t alarm, bool enable = true);
bool IrtcAlarmEnabled(uint8_t alarm, bool& enabled);
bool IrtcAlarmTriggered(uint8_t alarm, bool& triggered, bool clear = 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/irtcalarmtriggered.1788785568.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki