My problem in writing the code is that upon compiling I received the error message: expected initializer before numeric constant on the line: int pixelsPIN 3 = 3; // the number of the LED pin. Can anyone tell me what I need to do to correct this?
I also need to add the color parameters for the Pixels. I put the color at the end of the pixelsPin1 definition (bolded) with the plan to reiterate it in the same way for each pixel. Is that correct?
You seem confused about C/C++ syntax. Maybe you are thinking you’ve expressed some idea of an array.
You seem unaware of how three neopixels connect to an Arduino. Typically all neopixels are run off just one pin, one object. Therein lies the beauty. Use of mapping can make one long string function like as many separate bunches of as many neos as you want.
Read up on neopixels and try some example code. Study it until it makes sense or you have some questjons about it.
Where/what is the Adafruit State maxine? Perhaps if you shared all your code we could see some idea of what you are trying for.
pixels.setPixelColor(1,150,150,150);Is calling a member function of a class, before the object is created (and outside of a function !? ) Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, pixelsPIN, NEO_GRB + NEO_KHZ800);creates the object.