SunFounder ESP32 Starter Kit
COMPONENT INTRODUCTION PURCHASE LINK
ESP32 WROOM 32E
ESP32 Camera Extension -
Breadboard
Jumper Wires
Resistor
LED
4.5.2 You Will Learn
• Set the output value of the PWM pin
• Create variables
• Change the brightness of the sprite
4.5.3 Build the Circuit
This project uses the same circuit as the previous project 2.1 Table Lamp, but instead of using HIGH/LOW to make the
LEDs light up or turn off, this project uses the PWM - Wikipedia signal to slowly light up or dim down the LED.
The PWM signal range is 0-255, on the ESP32 board, 2, 5, 12~15, 18, 19, 21, 22, 25, 26 and 27 can output PWM
signal.
4.5. 2.2 Breathing LED 477