Overview
Today we will do something amazing with our IotBot! We will turn our LEDs into colorful lights that flash with music. How? Here is a simple plan: First, we will create several different light shows with 3 different modes, each of which will flash our LEDs in short bursts. Each will last for a maximum of 10 seconds and will randomly flash the lights on and off.
Then, we will be able to switch between these light shows using an encoder. We will select and start the show we want by pressing the encoder button on pin 13. Also, when we press the digital button on pin 0, the relay will be activated! This will allow us to play different notes by pressing and pulling. How exciting, right? Let's get started and create a musical feast full of colorful lights!