mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-19 11:42:09 +02:00
LED Test on Button
This commit is contained in:
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user