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?