Hi all,
I’m updating my Wemos D1 mini device with WS2812b LED stripes to Blynk 2.0, Now using BlynkEdgent.h instead of the old BlynkSimpleEsp8266.h (i manually changed the domain to blynk.cloud for this one to work).
Now, using the new code, my LED stripe starts flickering randomly around 30s after i turn it on. I’ve excluded basically all of my code, just turning on one single LED - and it still happens. I also produced the same example with the old code, using the old library, and it doesn’t happen. You can see both minimum code examples below.
I’d really appreciate if you can give me any clues how i can solve this.
Thanks and best regards,
Marius
Old code:
#define BLYNK_PRINT Serial
#include <BlynkSimpleEsp8266.h>
#include <Adafruit_NeoPixel.h>
#define BLYNK_TEMPLATE_ID "xxxx"
#define BLYNK_DEVICE_NAME "xxxx"
char auth[] = "xxxx";
char ssid[] = "xxxx";
char pass[] = "xxxx";
#define PIN D4
#define numberOfNeopixels 110
Adafruit_NeoPixel strip = Adafruit_NeoPixel(numberOfNeopixels, PIN, NEO_GRB + NEO_KHZ800);
void setup()
{
Blynk.begin(auth, ssid, pass);
strip.begin();
}
void loop()
{
Blynk.run();
strip.clear();
strip.setPixelColor(5, 255, 0, 0);
strip.show();
}
New Code:
#define BLYNK_PRINT Serial
#define BLYNK_TEMPLATE_ID "TMPLEwNmC1kj"
#define BLYNK_DEVICE_NAME "Wordclock J"
#define BLYNK_FIRMWARE_VERSION "0.1.0"
#include "BlynkEdgent.h"
#include <Adafruit_NeoPixel.h>
#define PIN D4
#define numberOfNeopixels 110
Adafruit_NeoPixel strip = Adafruit_NeoPixel(numberOfNeopixels, PIN, NEO_GRB + NEO_KHZ800);
void setup() {
BlynkEdgent.begin();
strip.begin();
}
void loop() {
BlynkEdgent.run();
strip.clear();
strip.setPixelColor(5, 255, 0, 0);
strip.show();
}