top of page

Music Player [Bolean and Button]

  • Writer: Jessi Cruz
    Jessi Cruz
  • Sep 16, 2019
  • 1 min read

https://makecode.microbit.org/_dPqbM0fKkEK1

I made little mistakes here and there with wiring. For example, I placed the green wire from the button to the LEFT of "0" on the pinbit and it took me after I finished coding and troubleshooting for errors that I realized the problem laid in the wiring. But, besides that inconvenience, everything else went nicely. I coded it so the button variable was reading the button inputs and changing it's value accordingly. This change in value activates the speaker and plays a melody. I tried my best to recreate the intro of the Super Mario Theme, but it was weird to have everything play correctly. As long as it plays something at least.



Recent Posts

See All
Final Project: SnakeDodge

https://editor.p5js.org/jisojc/sketches/JD5ABmlI- My final project was initially going to be a top-down shooter using a different p5...

 
 
 
Youtube COPPA Algorithm

https://www.theverge.com/2019/11/13/20963459/youtube-google-coppa-ftc-fine-settlement-youtubers-new-rules Youtube was fined a large sum...

 
 
 
Interactive Ball

Code: var brushSize; var BallX; var BallY; var ballSize; var xSpeed; var ySpeed; var bColor; function setup() { // put setup code here...

 
 
 

Comments


© 2023 by The Artifact. Proudly created with Wix.com

bottom of page