mirror of
https://github.com/78/xiaozhi-esp32.git
synced 2026-02-19 02:18:09 +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.
使用说明
快速体验
到 M5Burner 选择 Tab5 搜索小智下载固件
基础使用
- idf version: v6.0-dev
- 调整 idf_component.yml
将
espressif/esp_video:
version: ==1.3.1 # for compatibility. update version may need to modify this project code.
rules:
- if: target not in [esp32]
修改为
espressif/esp_video:
version: '==0.7.0'
rules:
- if: target not in [esp32]
espressif/esp_ipa: '==0.1.0'
- 使用 release.py 编译
python ./scripts/release.py m5stack-tab5
如需手动编译,请参考 m5stack-tab5/config.json 修改 menuconfig 对应选项。
- 编译烧录程序
idf.py flash monitor
Note
进入下载模式:长按复位按键(约 2 秒),直至内部绿色 LED 指示灯开始快速闪烁,松开按键。
log
@2025/05/17 测试问题
- listening... 需要等几秒才能获取语音输入???
- 亮度调节不对
- 音量调节不对