MicroPython Cookbook
上QQ阅读APP看书,第一时间看更新

Making a beeping sound

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.