From 475f7ce72cfc2ded1eae826a342fe3e3ddcf2403 Mon Sep 17 00:00:00 2001 From: HaoboGu Date: Tue, 20 Feb 2024 22:22:08 +0800 Subject: [PATCH] refactor: clean code Signed-off-by: HaoboGu --- rmk/src/lib.rs | 1 - rmk/src/light.rs | 5 ----- 2 files changed, 6 deletions(-) diff --git a/rmk/src/lib.rs b/rmk/src/lib.rs index 2b07d42b..ca2c6e18 100644 --- a/rmk/src/lib.rs +++ b/rmk/src/lib.rs @@ -48,7 +48,6 @@ mod via; /// * `keymap` - default keymap definition /// * `keyboard_config` - other configurations of the keyboard, check [RmkConfig] struct for details pub async fn initialize_keyboard_with_config_and_run< - 'a, D: Driver<'static>, In: InputPin, Out: OutputPin, diff --git a/rmk/src/light.rs b/rmk/src/light.rs index dc4f9c8e..8dd8c1a2 100644 --- a/rmk/src/light.rs +++ b/rmk/src/light.rs @@ -1,9 +1,4 @@ use defmt::Format; -///! Lighting in keyboard -///! -///! Two types of light: single color LED, RGB LED(ws2812). -///! -///! Three usages of LEDs: single/matrix/underglow(RGB only). use embedded_hal::digital::{OutputPin, PinState}; use packed_struct::prelude::*;