Skip to content

Commit de1e12c

Browse files
committed
Merge branch 'feat/keyboard_support_remote_wake_up' into 'master'
feat(keyboard): support remote wake up See merge request ae_group/esp-iot-solution!1149
2 parents 56c551b + f7b47f3 commit de1e12c

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

examples/keyboard/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ Note: keyboard_rgb_martix comes from the **QMK** project. Due to the use of the
7878

7979
### Change LOG
8080

81+
* v0.2.2 - 2024-11-21
82+
83+
* Added support for waking up a PC from sleep mode (remote wakeup).
84+
8185
* v0.2.1 - 2024-08-12
8286

8387
- Added debounce time to prevent buttons from being triggered twice consecutively.

examples/keyboard/README_cn.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ Note: keyboard_rgb_martix 来自 **QMK** 工程,由于使用 GPL 协议,如
7878

7979
#### Change LOG
8080

81+
* v0.2.2 - 2024-11-21
82+
83+
* 支持唤醒睡眠状态下的 PC (remote wakeup)
84+
8185
* v0.2.1 - 2024-8-12
8286

8387
* 增加消抖时间,避免按键连续触发两次

examples/keyboard/hid_device/usb_descriptors.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ uint8_t const *tud_descriptor_device_cb(void)
9494

9595
uint8_t const desc_fs_configuration[] = {
9696
// Config number, interface count, string index, total length, attribute, power in mA
97-
TUD_CONFIG_DESCRIPTOR(1, ITF_NUM_TOTAL, 0, CONFIG_TOTAL_LEN, 0, 100),
97+
TUD_CONFIG_DESCRIPTOR(1, ITF_NUM_TOTAL, 0, CONFIG_TOTAL_LEN, TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP, 100),
9898
// Interface number, string index, protocol, report descriptor len, EP In address, size & polling interval
9999
TUD_HID_DESCRIPTOR(ITF_NUM_HID, 4, HID_ITF_PROTOCOL_NONE, sizeof(desc_hid_report), (0x80 | EPNUM_HID_DATA), CFG_TUD_HID_EP_BUFSIZE, 1)
100100
};

examples/keyboard/main/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 0.2.1
1+
version: 0.2.2
22
dependencies:
33
idf: ">=5.2"
44
espressif/tinyusb:

0 commit comments

Comments
 (0)