This example shows how to estimate battery level using ADC sampling and display the percentage and charging state on the LCD of OpenNextion 2.8" and 3.5" devices.

Before starting, ensure the USB cable supports data transfer and maintain a stable connection between the board and your computer.
After successful flashing, the board will automatically restart.
Connect the battery, and the screen will display the battery level and charging status.