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

Sounding the alarm

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.