In this recipe, we will learn how to get the speakers to make a beeping sound at a specific sound frequency and for a specific duration of time. Audio output is a great way to get someone's attention; you can find it used everywhere from ringing phones to doorbells. This recipe will give you the skills that you need to add beeps to your embedded projects.
Making a beeping sound
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:
- Run the following...