feat(keyboard): 添加LED模块支持

- 在CMakeLists.txt中添加src/modules/led_module.c源文件
- 创建app.overlay设备树配置文件,启用GPIO0、GPIO1、GPIOTE和LED_0
- 在prj.conf中启用CONFIG_GPIO配置选项
- 实现led_module.c,包含LED GPIO控制逻辑和CAF事件处理
This commit is contained in:
2026-03-10 14:38:54 +08:00
parent d374f824cd
commit c5778e6c7a
4 changed files with 63 additions and 2 deletions

16
app.overlay Normal file
View File

@@ -0,0 +1,16 @@
/{};
&gpio0 {
status = "okay";
};
&gpio1 {
status = "okay";
};
&gpiote {
status = "okay";
};
&led_0 {
status = "okay";
};