Skip to content

Commit d076d6b

Browse files
committed
soft off
1 parent ba35b4d commit d076d6b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

config/34.dtsi

+5-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
continue-list = <UNDERSCORE MINUS BSPC DEL N1 N2 N3 N4 N5 N6 N7 N8 N9 N0>;
1010
};
1111

12+
&soft_off {
13+
hold-time-ms = <5000>; // Only turn off it the key is held for 5 seconds or longer.
14+
};
15+
1216
// hold-preferred: trigger hold when other key is *pressed*
1317
// balanced: trigger hold when other key is *pressed and released*
1418

@@ -198,7 +202,7 @@
198202
//+---------+---------+---------+------+---------+/* */+------------+---------+---------+-----------+-----------+
199203
BTC &none &none &none BT(0) /* */ &none &none &none UG(RGB_EFF) UG(RGB_TOG)
200204
//+---------+---------+---------+------+---------+/* */+------------+---------+---------+-----------+-----------+
201-
&none BOOT &soft_off &none BT(1) /* */ &out OUT_USB &none EP &none UG(RGB_BRI)
205+
&none BOOT &soft_off &none BT(1) /* */ &out OUT_USB &none &none &none UG(RGB_BRI)
202206
//+---------+---------+---------+------+---------+/* */+------------+---------+---------+-----------+-----------+
203207
&none &none &none &none BT(2) /* */ &out OUT_BLE &none &none &none UG(RGB_BRD)
204208
//+---------+---------+---------+------+---------+/* */+------------+---------+---------+-----------+-----------+

0 commit comments

Comments
 (0)