Repository navigation
This code implements a simple interactive system using an Adafruit Feather ESP32-S3. Here's a concise description of its functionality:
Hardware components:
-LED
-Potentiometer
-Touch sensor
-OLED display
Main features:
-Toggles an LED on/off using a touch sensor
-Controls LED brightness with a potentiometer (when LED is on)
-Displays system information on an OLED screen
-Monitors battery voltage and charge percentage
Key functions:
-handleTouchButton(): Detects touch input and toggles LED state
-updateLED(): Adjusts LED brightness based on potentiometer value
-updateDisplay(): Refreshes OLED display with current system status
The main loop continuously:
-Checks for touch input
-Updates LED state and brightness
-Refreshes the OLED display
-Prints LED state to serial monitor
-The system uses PWM for LED brightness control and includes debounce for the touch sensor to improve reliability.