In this recipe, we will learn how to play low and high frequency sounds to create the sound of an alarm. Alarm sounds are very useful for alerting people to get their attention. This recipe demonstrates a very simple, but effective, way to create an alarm sound, which can then be taken and adapted to the needs of your project.
Sounding the alarm
Getting ready
You will need access to the REPL on the Circuit Playground Express to run the code presented in this recipe.
How to do it...
Let's perform the following steps for this recipe:
- Run the following lines of code...