Coding a BeatBox with Micro:Bit #CodeBreaker

0
Coding a BeatBox with Micro:Bit #CodeBreaker

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:

 

screen-shot-2016-09-08-at-11-24-00-am

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 1,066 times, 1 visits today)

Leave a Reply

Name
Name*
Email
Email *
Website
Website