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:
16
app.overlay
Normal file
16
app.overlay
Normal file
@@ -0,0 +1,16 @@
|
||||
/{};
|
||||
&gpio0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gpio1 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gpiote {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&led_0 {
|
||||
status = "okay";
|
||||
};
|
||||
Reference in New Issue
Block a user