It is a simple lamp. I first connect the circuit board with the laptop and the switch. Then I test the code to make sure it is working with the switch. After I test the code and see the rainbow lights, I use a cup as a container to cover the wires. Finally, I put the circuit board in a lamp cover. The lamp is working by using the switch. After turning on the switch, the rainbow light lights up and the sound plays.
The code is from Make it switch tutorial on adafruit website. This code allows me to use a toggle switch to turn on or off the lights of circuit playground board. Beside of its original code, I add the code of music and brightness. Since I am making a simple lamp, I want to make the light bright. I add the jumpup sound just for fun.
Video of the working project:
Comments
Please log in or sign up to comment.