LED Test on Button

This commit is contained in:
Phat Nguyen
2024-02-15 11:21:04 +07:00
parent 94ead3751b
commit e55f3b6e74

View File

@ -986,6 +986,11 @@ static void boardInit(void) {
if (ag.pms5003.begin(Serial0) == false) { if (ag.pms5003.begin(Serial0) == false) {
failedHandler("Init PMS5003 failed"); failedHandler("Init PMS5003 failed");
} }
/** Run LED test on start up */
if (ag.button.getState() == ag.button.BUTTON_PRESSED) {
ledTest();
}
} }
/** /**