Complete the beatbox
activity and your code will look like this:
Let's include a second sound
on pin pressed P2. To do this, you need to add the same blocks as the banana keyboard activity. However, you must change alter
on pin pressed from P1 to P2. Additionally, you must decrease the frequency of the variable "sound" by 25. Modify your code so that your code looks like this
- click run to see if the code works as expected.
Finally, we want images to be displayed with sounds
on pin pressed. Add
show LEDs blocks under
on pin pressed P1 and P2.