- MicroPython Cookbook
- Marwan Alsabbagh
- 53字
- 2021-06-24 14:28:22
How it works...
The first line of code imports the Circuit Playground Express library. An infinite loop is then entered that will check whether push button A or push button B is being pressed in each loop iteration, and play a different pitched beep in each case for a duration of 0.2 seconds.