- MicroPython Cookbook
- Marwan Alsabbagh
- 53字
- 2025-04-04 14:22:37
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.