Exercise 1
- Light up pixel by pixel then reverse the sequence turning each pixel off one by one
This ambient orb exercise familiarixed me with using millis(). I had a lot of issues using the function in the beginning. Then I realized that the problem was that the time returned by millis() is done by the internal clock in Particle, and it calculates the time since the device began running the current program, and NOT the time lapsed since the function was called.
I also got more practice creating functions and learned how it can be triggered in the console as well as IFTTT. I realized it is more convenient to keep a block of code as a its own function than putting everything in the setup loop. The downside is that if the function only needs to be called one time, then there needs to be a conditional control in setup to make sure it only runs once.
You can upload files of up to 20MB using this form.