LEDs now show all green when in AP setup mode.
This commit is contained in:
parent
e03dd7fa05
commit
ff878f8ef6
1 changed files with 13 additions and 8 deletions
|
@ -73,6 +73,12 @@ void configModeCallback (WiFiManager *myWiFiManager) {
|
|||
DBG_OUTPUT_PORT.println(myWiFiManager->getConfigPortalSSID());
|
||||
//entered config mode, make led toggle faster
|
||||
ticker.attach(0.2, tick);
|
||||
|
||||
uint16_t i;
|
||||
for (i = 0; i < strip.numPixels(); i++) {
|
||||
strip.setPixelColor(i, 0, 255, 0);
|
||||
}
|
||||
strip.show();
|
||||
}
|
||||
|
||||
|
||||
|
@ -105,6 +111,13 @@ void setup() {
|
|||
// start ticker with 0.5 because we start in AP mode and try to connect
|
||||
ticker.attach(0.6, tick);
|
||||
|
||||
// ***************************************************************************
|
||||
// Setup: Neopixel
|
||||
// ***************************************************************************
|
||||
strip.begin();
|
||||
strip.setBrightness(brightness);
|
||||
strip.show(); // Initialize all pixels to 'off'
|
||||
|
||||
// ***************************************************************************
|
||||
// Setup: WiFiManager
|
||||
// ***************************************************************************
|
||||
|
@ -134,14 +147,6 @@ void setup() {
|
|||
digitalWrite(BUILTIN_LED, LOW);
|
||||
|
||||
|
||||
// ***************************************************************************
|
||||
// Setup: Neopixel
|
||||
// ***************************************************************************
|
||||
strip.begin();
|
||||
strip.setBrightness(brightness);
|
||||
strip.show(); // Initialize all pixels to 'off'
|
||||
|
||||
|
||||
// ***************************************************************************
|
||||
// Setup: MDNS responder
|
||||
// ***************************************************************************
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue