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

    Problem with RGB led bar for M5stack core 2

    Core2 for AWS
    3
    3
    5.7k
    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.
    • V
      vgamlc
      last edited by

      Could someone help me with some example on how to control the RGB led bar for m5stack core 2, I am new to this.
      Thanks in advance.

      MatiM 1 Reply Last reply Reply Quote 0
      • MatiM
        Mati @vgamlc
        last edited by

        @vgamlc check this one, so far my Core2 + bottom2 fail big time ..
        https://forum.m5stack.com/topic/2663/core2-uiflow-bottom2-support/6

        1 Reply Last reply Reply Quote 0
        • R
          rashedtalukder
          last edited by rashedtalukder

          @vgamlc, can you describe what you are wanting to see?

          The Sk6812 (side LED bars) has a few methods you can use (take a look at components/core2forAWS/core2forAWS.h from one of the projects):
          void Core2ForAWS_Sk6812_SetColor(uint16_t pos, uint32_t color);
          void Core2ForAWS_Sk6812_SetSideColor(uint8_t side, uint32_t color);
          void Core2ForAWS_Sk6812_SetBrightness(uint8_t brightness);
          void Core2ForAWS_Sk6812_Show();
          void Core2ForAWS_Sk6812_Clear();

          If I want to set the left LED bar to yellow example, you should put the following into your application:

          Core2ForAWS_Sk6812_SetSideColor(SK6812_SIDE_LEFT, 0xFFFF00);
          Core2ForAWS_Sk6812_Show();
          

          Head of the AWS IoT EduKit program and AWS employee. Not an M5Stack employee.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post