Skip to content

Commit 01c7a91

Browse files
author
qlq
committed
sync from totem; enable deepsleep
1 parent 4d4397b commit 01c7a91

File tree

5 files changed

+283
-122
lines changed

5 files changed

+283
-122
lines changed

config/boards/shields/cygnus/cygnus.dtsi

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
columns = <10>;
1313
rows = <4>;
1414
map = <
15-
RC(0,0) RC(0,1) RC(0,2) RC(0,3) RC(0,4) RC(0,5) RC(0,6) RC(0,7) RC(0,8) RC(0,9)
16-
RC(1,0) RC(1,1) RC(1,2) RC(1,3) RC(1,4) RC(1,5) RC(1,6) RC(1,7) RC(1,8) RC(1,9)
17-
RC(2,0) RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5) RC(2,6) RC(2,7) RC(2,8) RC(2,9)
15+
RC(0,0) RC(0,1) RC(0,2) RC(0,3) RC(0,4) RC(0,5) RC(0,6) RC(0,7) RC(0,8) RC(0,9)
16+
RC(1,0) RC(1,1) RC(1,2) RC(1,3) RC(1,4) RC(1,5) RC(1,6) RC(1,7) RC(1,8) RC(1,9)
17+
RC(2,0) RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5) RC(2,6) RC(2,7) RC(2,8) RC(2,9)
1818
RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(3,6) RC(3,7)
1919
>;
2020
};
@@ -23,6 +23,7 @@
2323
compatible = "zmk,kscan-gpio-matrix";
2424
label = "KSCAN";
2525
diode-direction = "col2row";
26+
wakeup-source;
2627
row-gpios
2728
= <&pro_micro 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
2829
, <&pro_micro 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
@@ -31,4 +32,4 @@
3132
;
3233
};
3334

34-
};
35+
};

config/cygnus.conf

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
1-
# 电池电量报告间隔时间单位是秒
2-
CONFIG_ZMK_BATTERY_REPORT_INTERVAL=60
3-
# 不活动 15 分钟后进入深度睡眠,深度睡眠纯在屏幕无法唤醒问题,是zmk固件本身问题已经在解决了
4-
# CONFIG_ZMK_SLEEP=y
5-
# 1800000 毫秒 = 30 分钟 * 60 秒 * 1000
6-
# CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=3600000
7-
# 进入空闲状态前的不活动毫秒数
8-
# CONFIG_ZMK_IDLE_TIMEOUT=15000
9-
# 增加键盘消抖
10-
CONFIG_ZMK_KSCAN_DEBOUNCE_PRESS_MS=5
11-
CONFIG_ZMK_KSCAN_DEBOUNCE_RELEASE_MS=5
121
# 增加键盘的 BLE 无线电的发射功率,用解决延迟和左右通讯不佳的问题
132
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
14-
# 更改键盘默认显示名称
15-
CONFIG_ZMK_KEYBOARD_NAME="Cygnus"
16-
CONFIG_ZMK_MOUSE=y
17-
CONFIG_ZMK_BLE_EXPERIMENTAL_CONN=y
18-
CONFIG_ZMK_SPLIT_BLE_CENTRAL_BATTERY_LEVEL_FETCHING=y
19-
CONFIG_ZMK_SPLIT_BLE_CENTRAL_BATTERY_LEVEL_PROXY=y
3+
4+
# Enable mouse and smooth scroll
5+
CONFIG_ZMK_POINTING=y
6+
CONFIG_ZMK_POINTING_SMOOTH_SCROLLING=y
7+
8+
# Deep Sleep after 15min of inactivity
9+
CONFIG_ZMK_SLEEP=y
10+
CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=900000

0 commit comments

Comments
 (0)