SunFounder ESP32 Starter Kit
4.7.2 You Will Learn
• Potentiometer principle
• Read analog pin and ranges
• Mapping one range to another
• Moving and changing the direction of sprite
4.7.3 Build the Circuit
The potentiometer is a resistive element with 3 terminals, the 2 side pins are connected to 5V and GND, and the middle
pin is connected to pin35. After conversion by the ADC converter of the ESP32, the value range is 0-4095.
4.7. 2.4 Moving Mouse 493