My nightlight project is a beginner level project that requires the understanding of Microsoft Makecode or of javascript and the circuit playground express. In this project I used the code that I provided to take input from an analogue switch to send a signal to the Circuit playground express. The Circuit Playground express receives the signal through its A1 pin sensor and then starts the rainbow animation that is default to Microsoft Makecode. When the switch is turned off the animation stops.
I then used a jar and tissue paper to make a creative housing for my project. I chose to put tissue paper in the jar so that the wiring would be hidden and the light animation has something to reflect on to. I could adjust my housing to better fasten the switch to the jar, however I did not have access to a drill or scroll saw while creating this project.


Comments