M5Stack Faces II Led drive
-
Hello,
I use the Adafruit_NeoPixel for drive the 10 Leds (2x5) in my Faces II base
After the begin(), show() functions, all leds are off, but when I want to change a pixels and make a show() the first LED stay on event I put all pixels(index) to 0
Any know this worry ?
My code is this#include <Adafruit_NeoPixel.h>
#define M5STACK_FIRE_NEO_NUM_LEDS 10
#define M5STACK_FIRE_NEO_DATA_PIN 15
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(M5STACK_FIRE_NEO_NUM_LEDS, M5STACK_FIRE_NEO_DATA_PIN, NEO_GRB + NEO_KHZ800);
vois setup() {
pixels.begin();
pixels.show();
}void setPixels(int r, int g, int b) {
for(int i=0; i<10; i++) pixels.setPixelColor(i, pixels.Color(r, g, b));
pixels.show();
}void loop() {
setPixels(0, 100, 0);
delay(500);
setPixels(0, 100, 0);
delay(500);
setPixels(0, 100, 0);
delay(500);}
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login