We would like to be able to turn on and off the light easily. The board is tucked under the globe so buttons or gestures are not really doable... which leaves us with the microphone!!!

Using the on loud sound, we switch the animation on and off. We use a variable on to keep track of the animation state (true = on, false = off).

When the variable on turns false, we cancel the current animation and clear the LEDs. The forever loop keeps running in the background but only animations when on is true.

This guide was first published on Dec 13, 2017. It was last updated on 2017-12-13 10:20:41 -0500.

This page (Clap clap) was last updated on Dec 12, 2017.

Text editor powered by tinymce.