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.
Content Rating
Is this a good/useful/informative piece of content to include in the project? Have your say!
You must login before you can post a comment. .