LP_THREAD({ if (isComplete && !boolLastCompletedState) { boolLastCompletedState = true; for(int i=0; i<10; i++) { digitalWrite(activeBuzzerPin, HIGH); delay(100); digitalWrite(activeBuzzerPin, LOW); delay(200); } } LP_DELAY(10); }); // LP_TIMER(1000, AdditionalChecks); // void AdditionalChecks() { // if (isComplete && !boolLastCompletedState) { // boolLastCompletedState = true; // for(int i=0; i<5; i++) { // digitalWrite(activeBuzzerPin, HIGH); // delay(100); // digitalWrite(activeBuzzerPin, LOW); // delay(500); // } // } // }