Skip to content

Commit

Permalink
soft off
Browse files Browse the repository at this point in the history
  • Loading branch information
dcai committed Apr 4, 2024
1 parent ba35b4d commit d076d6b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/34.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
continue-list = <UNDERSCORE MINUS BSPC DEL N1 N2 N3 N4 N5 N6 N7 N8 N9 N0>;
};

&soft_off {
hold-time-ms = <5000>; // Only turn off it the key is held for 5 seconds or longer.
};

// hold-preferred: trigger hold when other key is *pressed*
// balanced: trigger hold when other key is *pressed and released*

Expand Down Expand Up @@ -198,7 +202,7 @@
//+---------+---------+---------+------+---------+/* */+------------+---------+---------+-----------+-----------+
BTC &none &none &none BT(0) /* */ &none &none &none UG(RGB_EFF) UG(RGB_TOG)
//+---------+---------+---------+------+---------+/* */+------------+---------+---------+-----------+-----------+
&none BOOT &soft_off &none BT(1) /* */ &out OUT_USB &none EP &none UG(RGB_BRI)
&none BOOT &soft_off &none BT(1) /* */ &out OUT_USB &none &none &none UG(RGB_BRI)
//+---------+---------+---------+------+---------+/* */+------------+---------+---------+-----------+-----------+
&none &none &none &none BT(2) /* */ &out OUT_BLE &none &none &none UG(RGB_BRD)
//+---------+---------+---------+------+---------+/* */+------------+---------+---------+-----------+-----------+
Expand Down

0 comments on commit d076d6b

Please sign in to comment.