mirror of
https://github.com/78/xiaozhi-esp32.git
synced 2026-02-15 16:38:07 +00:00
uint32_t duty_cycle = (4095 * brightness_percent) / 100; ledc_set_duty(LEDC_LOW_SPEED_MODE, LCD_LEDC_CH, duty_cycle); https://github.com/m5stack/M5Tab5-UserDemo/blob/main/platforms/tab5/components/m5stack_tab5/m5stack_tab5.c#L1088 Tested on M5Stack Tab5, the screen brightness is working correctly now, previously it's reversed.