en-us_commands:reference:irtcalarmtriggered
This is an old revision of the document!
Table of Contents
IrtcAlarmTriggered()
IrtcAlarmTriggered() checks whether an alarm has triggered and optionally clears its status.
bool IrtcAlarmTriggered(uint8_t alarm, bool& triggered, bool clear = true)
Commands
| Command | Arguments | Return Value | Operation |
|---|---|---|---|
IrtcAlarmTriggered(alarm, triggered, clear) | uint8_t alarmbool& triggeredbool 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.
en-us_commands/reference/irtcalarmtriggered.1788785568.txt.gz · Last modified: by 127.0.0.1
