feat: 添加LED灯带模块支持

- 在CMakeLists.txt中添加led_strip_module.c源文件和led_strip_en_event.c事件文件
- 在设备树配置中添加SPI1接口的WS2812灯带引脚控制配置
- 在板级配置文件中添加LED灯带设备节点和别名定义
- 新增led_strip_en_event事件头文件和实现,用于控制灯带使能状态
- 配置prj.conf启用LED Strip和WS2812 SPI驱动
- 实现完整的LED灯带模块功能,包括:
  - 初始化和电源管理
  - RGB色彩效果渲染
  - 通过GPIO控制灯带供电
  - 响应应用事件进行启停控制
This commit is contained in:
2026-04-13 15:23:46 +08:00
parent 968fb626bb
commit ff8f0d81d7
7 changed files with 376 additions and 0 deletions

View File

@@ -29,6 +29,7 @@ target_sources(app PRIVATE
src/encoder_module.c
src/hid_flowctrl_module.c
src/keyboard_core_module.c
src/led_strip_module.c
src/ui/ui_main.c
src/cdc_wrapper_module.c
src/protocol_module.c
@@ -45,6 +46,7 @@ target_sources(app PRIVATE
src/events/hid_report_sent_event.c
src/events/hid_transport_state_event.c
src/events/hid_tx_report_event.c
src/events/led_strip_en_event.c
src/events/key_function_event.c
src/mode_switch_module.c
src/events/keyboard_hid_report_event.c