Answer the question
In order to leave comments, you need to log in
Why does NeoPixel display colors incorrectly?
I'm trying to light an addressable LED strip with WS2812B diodes. Like how I assembled it, wrote a sketch, everything glows without problems. The problem started at the stage when I decided to change the colors. It turned out that most of them are simply not displayed. Those. those LEDs that should light up in the desired color may light up differently or simply do not light up, as if they were set to black. For example:
uint32_t FonColor = Display.Color(20, 20, 200); // работает
uint32_t IntColor = Display.Color(200, 200, 22); // работает
uint32_t ErrColor = Display.Color(255, 0, 0); // работает
uint32_t Col1Color = Display.Color(255, 255, 255); // работает
uint32_t Col2Color = Display.Color(0, 0, 0); // работает
uint32_t FonColor = Display.Color(0, 64, 0); // не загораются, чёрный цвет
uint32_t FonColor = Display.Color(10,100, 100); // не загораются, чёрный цвет
Display.Color(150, 50, 30);
Display.Color(255, 0, 0);
Adafruit_NeoPixel Display = Adafruit_NeoPixel(Config.AllLed, Config.Pin, NEO_GRB + NEO_KHZ800);
Answer the question
In order to leave comments, you need to log in
As it turned out, the reason is that I had the tape in front of my nose and so as not to blind - I set the brightness to one in the settings. Sbostvenno on this dark colors and did not burn. Because they themselves are dark, but also the brightness is at a minimum. It was worth setting the brightness to half - and everything worked as it should.
uint32_t FonColor = Display.Color(0, 64, 0); // do not light up, black colorWhat do you think dark green light looks like?))
Display.Color(10,100, 100); // do not light up, black coloralso dark
Also, some colors may not display correctly. For example, these two options are displayed in one red color.everything is ok, both values are red light, 150, 50, 30 - brick, 255, 0, 0 - bright red.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question