this is simple example that sets four neopixels to red, green, blue, and then white in order; and then flashes them. If the first pixel is green and the second is red, you need to pass the NEO_RGB flag into the NeoPixelBus constructor.
### NeoPixelFun
this is a more complex example, that includes code for three effects, and demonstrates animations.
this will return a color that is a blend between the given colors. The amount to blend is given by the value of progress, 0 will return the left value, 255 will return the right value, 128 will return the value between them.
NOTE: This is not an accurate "visible light" color blend but is fast and in most cases good enough.
This represents a single NeoPixel Bus that is connected by a single pin. Please see Adafruit's documentation for details, but the differences are documented below.
It is rare, but some older NeoPixels require a slower communications speed, to include this support you must include the following define before the NeoPixelBus library include and then include the NEO_KHZ400 type flag to enable this slower speed.
This allows setting a pixel on the bus to a color as defined by a color object. If an animation is actively running on a pixel, it will be stopped.
#### RgbColor GetPixelColor(uint16_t n) const
this allows retrieving the current pixel color
#### void LinearFadePixelColor(uint16_t time, uint16_t n, RgbColor color)
this will setup an animation for a pixel to linear fade between the current color and the given color over the time given. The time is in milliseconds.
#### void StartAnimating()
this method will initialize the animation state. This should be called only if there are no active animations and new animations are started.
#### void UpdateAnimations()
this method will allow the animations to be processed and update the pixel color state.
NOTE: Show must still be called to push the color state to the physical NeoPixels.
#### bool IsAnimating() const
this method will return the current animation state. It will return false if there are no active animations.