Ok, I am still struggling with coding issues.
I am trying to develop a subroutine (sorry for using the wrong term if that is incorrect but I do not know the proper terminology)
I am trying to program a trinket to control 4 Neopixel LEDs
I want to have the pixels turn on individually set to colors I choose using the strip.setPixelColor(n, R, B, G) code
Then I want to have them fade out using the strip.setBrightness(i) code and have "i" be a variable in the sub routine to run over and over fading from 255 (max brightness) to 0 (off) in increments assignable per step from 1 to 10
Then have the subroutine strip.setColorPixel(n, 0, 0, 0) and return i to 255 and then return to void loop for the next command
While I am at it, is there a way to have each of 4 neopixels fade at different times like have one pixel come on red and begin fading out and while that one is fading have another come on blue and start fading and then have the other 2 come on white then start fading. If not, i can handle them all fading at the same time, just curious
I can figure out how to have one LED come on and fade out then come back on and fade out in loop, but I don't know how to get this to work in a subroutine.
Thanks for any help.
