ESP32 Starter Kit
4. Test Result
After connecting the wiring and uploading code, the two sizes of hearts are displayed alternately.
9.2.22 Project 19 : Dimming Lamp
1. Description
The dimming lamp adjusts the brightness of LED via a potentiometer and an Arduino controller. The brightness is
subject to resistance value, which can be read and adjusted by connecting the ends of the potentiometer to digital or
analog pins on board. What’s more, this system is applied to control voltage or current of other devices such as fans,
bulbs and heaters.
268 Chapter 9. Scratch Tutorial