Skip to content

Issue with WS2812B - all green instead of off #885

Closed

Description

@Vizis

Hey
Im trying to create infinity mirror clock . It't 1st time im using FastLED lib.
Here is my code: https://pastebin.com/eBDeKn49
and the issue is that all of not used pixels are green. When i set rgb color it looks like color starts from green not 'black'

Activity

  1. GianniDPC commented on Sep 8, 2019

    @GianniDPC
    #define COLOR_ORDER GRB
    #define LED_TYPE    WS2812B
    

    FastLED.addLeds<LED_TYPE,DATA_PIN,COLOR_ORDER>(leds, NUM_LEDS).setCorrection(TypicalLEDStrip);

    You need to define the color order as GRB instead of the default RGB.

  2. Vizis commented on Sep 8, 2019

    @Vizis
    Author

    Ok so i repalced my
    FastLED.addLeds<NEOPIXEL, LEDStripPin>(leds, numLEDs);
    with ur
    FastLED.addLeds<LED_TYPE,LEDStripPin,COLOR_ORDER>(leds, numLEDs).setCorrection(TypicalLEDStrip);
    with
    `#define COLOR_ORDER GRB

    #define LED_TYPE WS2812B`
    of all combionation of RGB (RGB, RBG, BRG, BGR etc)
    and allways non used leds was green
    (leds strip seems ok because i tested it on "Adafruit_NeoPixel" with sample raibow + effects test"

  3. GianniDPC commented on Sep 8, 2019

    @GianniDPC

    Ok so i repalced my
    FastLED.addLeds<NEOPIXEL, LEDStripPin>(leds, numLEDs);
    with ur
    FastLED.addLeds<LED_TYPE,LEDStripPin,COLOR_ORDER>(leds, numLEDs).setCorrection(TypicalLEDStrip);
    with
    `#define COLOR_ORDER GRB

    #define LED_TYPE WS2812B`
    of all combionation of RGB (RGB, RBG, BRG, BGR etc)
    and allways non used leds was green
    (leds strip seems ok because i tested it on "Adafruit_NeoPixel" with sample raibow + effects test"

    Which MCU are you using? I have the same strip and it works fine. I'm using an STM32F103 MCU.

    Also what happens if you test exampels like DemoReel.ino ?

  4. Vizis commented on Sep 8, 2019

    @Vizis
    Author

    It seems my Lib was damaged somehow... after i reinstalled FastLED everything works like it should be..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions