🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    M5Stack Faces II Led drive

    Scheduled Pinned Locked Moved Arduino
    1 Posts 1 Posters 4.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C Offline
      CHB
      last edited by

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

      }

      1 Reply Last reply Reply Quote 0

      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
      • First post
        Last post