APASENSE v1.1.0
What's new
Alert melody patterns
Three severity-matched buzzer rhythm patterns stored in flash (PROGMEM):
BUZZER_INFO— single beep (1.0 s cycle)BUZZER_WARNING— double beep (2.55 s cycle)BUZZER_ALARM— triple fast beep (1.95 s cycle)
alert(severity, repeat=false) plays once or loops until stopAlert(). Designed for APAPUMP alarm callbacks.
Power calculation
enableCurrent() gains an optional voltageV parameter. getPower() returns apparent power in VA (V × I RMS). Use APASENSE_MAINS_EU (230 V) or APASENSE_MAINS_US (120 V).
Changes
setBuzzer(false)andbeep()now cancel any activealert()pattern- Timer comparisons made rollover-safe (49-day millis() overflow fix)
- SRAM: 57 bytes (+6 vs v1.0.0)