So i've had this problem for some time, where every time i try to code the neopixel led strips, no matter what the code is about, the leds are always white and the only thing that i can change is the brightness. The led strip has an external alimentation, and i am coding arduino mini pro through arduino uno. (here is the tutorial i used for coding it ), i use the led strip GROVE- WS2813 RGB
if you look at the 4th line of the code you see i put it in there, i dont really think the software is the problem since for some time i didn't have this problem, it randomly started doing this. I've also tried changing the arduino mini Pro, didn't work. I can contro the LED strip with only the arduino UNO, and i can succesfully upload any sketch to the mini pro this way; for example i am able to make a led blink or make it react to a switch. It only doesn't work with the LED strip
Added: although TBH your report doesn't seem to agree with what I wrote below, at least not with the number of brain cells I can get to focus on the issue just now.
No. wokwi uses a certain kind of LED as far as RGB order goes. Lie in the constructor and you get different colours.
The Color() method takes R, G and B components in that order. If your constructor matches your Neopixel's order, you get the right colour. All the ,ow level stuff that puts out data arranges it accordian to the claim you make BRG, whatever.
Compensating for the variations RGB, BGR, WRGB and so forth is handled entirely by claiming the correct order in the constructor. The rest of the code doesn't, and shouldn't, have to deal with rearranging things.
I always turn pixel 1 red, 2 green and 3 blue in setup just to confirm that I've specified the correct Neopixel type…
I go way back with RGB so usually I just roll my own colours as 32 bit unsigned long integers, so red for me is 0xff0000.
Evidently wokwi has purchased an infinite supply of virtual Neopixels of the GRB type. I copied the constructor from somewhere some time ago - never mind how long precisely - and have been uncritically copy/pasting it from a snippets file. I'm really good at not seeing detail I don't need to see. My stuff worked fine, as I was operating one step up. I did not ever notice these:
// fastled
# define COLOR_ORDER GRB
// lady ada
Adafruit_NeoPixel track(N_REAL, PIN_NEOPIXEL, NEO_GRB + NEO_KHZ800);
@nozzo likewise sry for the distraction, but it is good to run this kind of thing to ground.