This project showcases my knowledge using of using an input/output. Flipping the switch to the on position turns on the hardware and makes it output sounds creating music and flashing lights of different color. Makecode using Javascript was used to create this. Section borrowed from Adafruit tutorials on getting functions to work.
On start raises the volume after it starts so it is louder than the default noise. Forever function makes in go in a continuous loop, only to stop when I turn the switch off. To do this I created a function called intro, since it is the intro to the song (Halloween theme). After playing around with it to get it to start I added the musical notes and tuned them to the song. After that I added multiple set pixel instances to change colors.
Comments
Please log in or sign up to comment.