Back to Parent

Debugging for simple ambient orb

Using dht sensor in dev 2 gave me a chance to interact with serial monitor and it helps a lot. (Here as well.) I added Serial.println whenever calling a function or when a part of code was executed to document the progress.
With screenshots of particle serial monitor, the process of coding for a simple is clearly kind of all related to the usage of millis();.

The first error was caused by missing part of code to initialize start time to set up the function using elapsed time for mapping brightness. Second one is also kind of a relevant mistake, caused by leaving out a initialization for fading back.


Content Rating

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

0