Back to Parent

Coding process for simple ambient orb

The first idea is to create a function like calling out colors and let the strip fade. A fade function that use the logic of setColor, with the help of mapping overall brightness using elapsed time to evaluate the current progress.

With a function of void fade(uint32_t oColor, uint32_t dColor, bool refade), and call strip.Color containers w and r, it actually combines a void fade () with a void refade().  

The complete code for a simple orb is as followed. And the function could work when called on particle console.


Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0