SunFounder ESP32 Starter Kit
The buzzer needs to use a transistor when working, here we use S8050 (NPN Transistor).
Code
Note:
• Open the 3.1_beep.py file located in the esp32-starter-kit-main\micropython\codes path, or copy
and paste the code into Thonny. Then, click “Run Current Script” or press F5 to execute it.
• Make sure to select the “MicroPython (ESP32).COMxx” interpreter in the bottom right corner.
338 Chapter 3. For MicroPython User