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);

    }