From 383f2187716fbc31651c3be40f5a2eb09bf4a2b3 Mon Sep 17 00:00:00 2001 From: Li Junru Date: Mon, 2 Sep 2024 20:25:46 +0800 Subject: [PATCH 1/2] fix(keyboard): fix double click problem --- .../keyboard/components/esp32_s3_kbd_kit/include/bsp/keyboard.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/keyboard/components/esp32_s3_kbd_kit/include/bsp/keyboard.h b/examples/keyboard/components/esp32_s3_kbd_kit/include/bsp/keyboard.h index 8fc499466..bea6ded4e 100644 --- a/examples/keyboard/components/esp32_s3_kbd_kit/include/bsp/keyboard.h +++ b/examples/keyboard/components/esp32_s3_kbd_kit/include/bsp/keyboard.h @@ -11,7 +11,7 @@ extern "C" { /*!< Keyboard active level */ #define KBD_ATTIVE_LEVEL 1 -#define KBD_TICKS_INTERVAL_US 500 +#define KBD_TICKS_INTERVAL_US 1000 /*!< Keyboard matrix GPIO */ #define KBD_ROW_NUM 6 From deb258c5d1ac39408ba3956d08761002d2f93cc4 Mon Sep 17 00:00:00 2001 From: Li Junru Date: Mon, 2 Sep 2024 20:26:23 +0800 Subject: [PATCH 2/2] fix(extern_lcd): fix older iic driver ng problem --- examples/keyboard/README.md | 5 +++++ examples/keyboard/README_cn.md | 5 +++++ .../keyboard/components/esp32_s3_kbd_kit/idf_component.yml | 2 +- examples/keyboard/main/idf_component.yml | 2 +- examples/usb/device/usb_extend_screen/main/app_uac.c | 4 ++-- examples/usb/device/usb_extend_screen/main/idf_component.yml | 1 + 6 files changed, 15 insertions(+), 4 deletions(-) diff --git a/examples/keyboard/README.md b/examples/keyboard/README.md index a339557b1..3b9bcdaaf 100644 --- a/examples/keyboard/README.md +++ b/examples/keyboard/README.md @@ -78,6 +78,11 @@ Note: keyboard_rgb_martix comes from the **QMK** project. Due to the use of the ### Change LOG +* v0.2.1 - 2024-08-12 + +- Added debounce time to prevent buttons from being triggered twice consecutively. +- The speed of the heatmap lighting effect can now be adjusted according to the effect speed, with levels ranging from 1 to 4. + * v0.2.0 - 2024-8-12 * Added support for lighting effects in BLE mode, with the keyboard backlight turning off by default after 60 seconds. diff --git a/examples/keyboard/README_cn.md b/examples/keyboard/README_cn.md index 91373e04b..f4adfee01 100644 --- a/examples/keyboard/README_cn.md +++ b/examples/keyboard/README_cn.md @@ -78,6 +78,11 @@ Note: keyboard_rgb_martix 来自 **QMK** 工程,由于使用 GPL 协议,如 #### Change LOG +* v0.2.1 - 2024-8-12 + + * 增加消抖时间,避免按键连续触发两次 + * 热力图灯效的速度可以跟随灯效速度调节,为 1-4 档 + * v0.2.0 - 2024-8-12 * BLE 模式下支持灯效,默认 60s 关闭键盘灯光 diff --git a/examples/keyboard/components/esp32_s3_kbd_kit/idf_component.yml b/examples/keyboard/components/esp32_s3_kbd_kit/idf_component.yml index cb4769d4e..46222574a 100644 --- a/examples/keyboard/components/esp32_s3_kbd_kit/idf_component.yml +++ b/examples/keyboard/components/esp32_s3_kbd_kit/idf_component.yml @@ -14,4 +14,4 @@ dependencies: led_strip: version: "^2.5.3" - lijunru-hub/keyboard_rgb_matrix: "^0.1.1" + lijunru-hub/keyboard_rgb_matrix: "^0.1.2" diff --git a/examples/keyboard/main/idf_component.yml b/examples/keyboard/main/idf_component.yml index 1d2834df3..662ee6cb5 100644 --- a/examples/keyboard/main/idf_component.yml +++ b/examples/keyboard/main/idf_component.yml @@ -1,4 +1,4 @@ -version: 0.2.0 +version: 0.2.1 dependencies: idf: ">=5.2" espressif/tinyusb: diff --git a/examples/usb/device/usb_extend_screen/main/app_uac.c b/examples/usb/device/usb_extend_screen/main/app_uac.c index 97aaee80f..d5599e095 100644 --- a/examples/usb/device/usb_extend_screen/main/app_uac.c +++ b/examples/usb/device/usb_extend_screen/main/app_uac.c @@ -29,13 +29,13 @@ static esp_err_t uac_device_input_cb(uint8_t *buf, size_t len, size_t *bytes_rea static void uac_device_set_mute_cb(uint32_t mute, void *arg) { - ESP_LOGI(TAG, "uac_device_set_mute_cb: %"PRIu32"", mute); + ESP_LOGD(TAG, "uac_device_set_mute_cb: %"PRIu32"", mute); bsp_extra_codec_mute_set(mute); } static void uac_device_set_volume_cb(uint32_t volume, void *arg) { - ESP_LOGI(TAG, "uac_device_set_volume_cb: %"PRIu32"", volume); + ESP_LOGD(TAG, "uac_device_set_volume_cb: %"PRIu32"", volume); bsp_extra_codec_volume_set(volume, NULL); } diff --git a/examples/usb/device/usb_extend_screen/main/idf_component.yml b/examples/usb/device/usb_extend_screen/main/idf_component.yml index 51c9b99ae..f45aaf845 100644 --- a/examples/usb/device/usb_extend_screen/main/idf_component.yml +++ b/examples/usb/device/usb_extend_screen/main/idf_component.yml @@ -6,3 +6,4 @@ dependencies: leeebo/tinyusb_src: version: "*" espressif/esp_lcd_ek79007: "*" + espressif/esp_codec_dev: "1.3.0"