Hot answers tagged

2 votes
Accepted

strip.clear() is not clearing/turning off the NeoPixel strip after resetting the ESP8266

We can have a look at the clear() function inside the Adafruit_Neopixel library. In Adafruit_Neopixel.cpp you can find at line 3396 (searching for clear(void) will get you there): void ...
chrisl's user avatar
  • 16.2k
1 vote

NodeMCU 1.0 - Port D3, relay and pump does not boot

D3 is connected to the FLASH button on the board. It is used to control the boot mode on startup. If this pin is LOW on startup it will stay in flash mode, ready to receive a new program. If it is ...
chrisl's user avatar
  • 16.2k
1 vote

Running code inside void loop() vs inside a separate function with an infinite loop in it

The ESP8266 has additional code that needs to run between iterations of the loop function. If you are going to trap it elsewhere in some while loop, then you need to also be sure to call delay(0); or ...
Delta_G's user avatar
  • 3,270
1 vote

Running code inside void loop() vs inside a separate function with an infinite loop in it

loop already runs indefinitely, hence its name. You don't need to add another loop in your go_to function. Remove that and it should be functionally identical.
Nick Gammon's user avatar
  • 38.2k
1 vote

Attempt to change an ESP8266's flashs layout over-the-air

As it turns out the update routine of ESPhttpUpdate.h works just fine when the flash layout changes after an OTA update. At least in my case where the second half of flash memory is unused. If there ...
Sim Son's user avatar
  • 1,859
1 vote

Where can I store secret keys?

As @the busybee already said, the ESP8266 is the wrong chip for such applications. Since you always have the possibility to change the firmware. You could write your own bootloader that only accepts ...
Dario.Casciato's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible