Coding a BeatBox with Micro:Bit #CodeBreaker

Coding a BeatBox with Micro:Bit #CodeBreaker
Tweet about this on TwitterShare on FacebookPin on PinterestShare on LinkedInShare on Google+Share on TumblrEmail this to someoneShare on StumbleUponShare on RedditDigg this

In this challenge we are going to code a simple script that plays sounds based on inputs to the Micro:Bit.



Our sounds will be triggered by the Pins and input buttons A and B. We will display different LED light patterns corresponding to each input to give an equalizer feel. We will use alligator clips to connect to a speaker. Below is the source code:



Here is the final demo:

What can you create?

For more lessons, activities and ideas, grab a copy of my book, Code Breaker, on Amazon here!

(Visited 345 times, 1 visits today)

Leave a Reply

Email *