This commit is contained in:
Chen Zeng
2024-09-06 21:50:01 +08:00
parent 22cf15c911
commit 68622dbe52
8 changed files with 69 additions and 33 deletions
+1 -1
View File
@@ -7,5 +7,5 @@ include:
shield: nice_view_adapter nice_view
artifact-name: sofle_left_nice_view
- board: sofle_right
shield: nice_view_adapter nice_view
shield: nice_view_adapter nice_view_custom
artifact-name: sofle_right_nice_view
+1 -1
View File
@@ -49,7 +49,7 @@ endchoice
endif
if LVGL
if SSD1306
config LV_Z_VDB_SIZE
default 64
+2 -1
View File
@@ -8,7 +8,7 @@ CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=3600000
# SPDX-License-Identifier: MIT
#
CONFIG_ZMK_SLEEP=y
CONFIG_ZMK_SLEEP=n
CONFIG_WS2812_STRIP=y
CONFIG_ZMK_RGB_UNDERGLOW=y
CONFIG_ZMK_RGB_UNDERGLOW_EXT_POWER=y
@@ -21,3 +21,4 @@ CONFIG_ZMK_RGB_UNDERGLOW_HUE_START=160
CONFIG_ZMK_RGB_UNDERGLOW_EFF_START=3
#CONFIG_ZMK_HID_CONSUMER_REPORT_USAGES_BASIC=y
CONFIG_ZMK_MOUSE=y
+12 -11
View File
@@ -43,17 +43,17 @@ CONFIG_ZMK_DISPLAY=y
CONFIG_ZMK_DISPLAY_WORK_QUEUE_DEDICATED=y
CONFIG_ZMK_DISPLAY_DEDICATED_THREAD_STACK_SIZE=2048
CONFIG_LV_Z_BITS_PER_PIXEL=1
CONFIG_LV_COLOR_DEPTH_1=y
CONFIG_LV_DPI_DEF=145
CONFIG_LV_Z_VDB_SIZE=100
CONFIG_LV_USE_THEME_MONO=y
CONFIG_LV_COLOR_CHROMA_KEY_HEX=0x00FF00
CONFIG_ZMK_LV_FONT_DEFAULT_SMALL_MONTSERRAT_16=y
CONFIG_LV_FONT_MONTSERRAT_26=y
CONFIG_LV_FONT_DEFAULT_MONTSERRAT_26=y
#CONFIG_ZMK_DISPLAY_WORK_QUEUE_DEDICATED=y
#CONFIG_ZMK_DISPLAY_DEDICATED_THREAD_STACK_SIZE=2048
#CONFIG_LV_Z_BITS_PER_PIXEL=1
#CONFIG_LV_COLOR_DEPTH_1=y
#CONFIG_LV_DPI_DEF=145
#CONFIG_LV_Z_VDB_SIZE=100
#CONFIG_LV_USE_THEME_MONO=y
#CONFIG_LV_COLOR_CHROMA_KEY_HEX=0x00FF00
#CONFIG_ZMK_LV_FONT_DEFAULT_SMALL_MONTSERRAT_16=y
#CONFIG_LV_FONT_MONTSERRAT_26=y
#CONFIG_LV_FONT_DEFAULT_MONTSERRAT_26=y
#EXT POWER
@@ -75,3 +75,4 @@ CONFIG_ZMK_HID_REPORT_TYPE_NKRO=n
#EC11 enable
CONFIG_EC11=y
CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y
CONFIG_ZMK_MOUSE=y
+12 -12
View File
@@ -44,17 +44,17 @@ CONFIG_ZMK_DISPLAY=y
CONFIG_ZMK_DISPLAY_WORK_QUEUE_DEDICATED=y
CONFIG_ZMK_DISPLAY_DEDICATED_THREAD_STACK_SIZE=2048
CONFIG_LV_Z_BITS_PER_PIXEL=1
CONFIG_LV_COLOR_DEPTH_1=y
CONFIG_LV_DPI_DEF=145
CONFIG_LV_Z_VDB_SIZE=100
CONFIG_LV_USE_THEME_MONO=y
CONFIG_LV_COLOR_CHROMA_KEY_HEX=0x00FF00
CONFIG_ZMK_LV_FONT_DEFAULT_SMALL_MONTSERRAT_16=y
CONFIG_LV_FONT_MONTSERRAT_26=y
CONFIG_LV_FONT_DEFAULT_MONTSERRAT_26=y
#CONFIG_ZMK_DISPLAY_WORK_QUEUE_DEDICATED=y
#CONFIG_ZMK_DISPLAY_DEDICATED_THREAD_STACK_SIZE=2048
#CONFIG_LV_Z_BITS_PER_PIXEL=1
#CONFIG_LV_COLOR_DEPTH_1=y
#CONFIG_LV_DPI_DEF=145
#CONFIG_LV_Z_VDB_SIZE=100
#CONFIG_LV_USE_THEME_MONO=y
#CONFIG_LV_COLOR_CHROMA_KEY_HEX=0x00FF00
#CONFIG_ZMK_LV_FONT_DEFAULT_SMALL_MONTSERRAT_16=y
#CONFIG_LV_FONT_MONTSERRAT_26=y
#CONFIG_LV_FONT_DEFAULT_MONTSERRAT_26=y
#EXT POWER
CONFIG_ZMK_EXT_POWER=y
@@ -70,5 +70,5 @@ CONFIG_USB_DEVICE_MANUFACTURER="sofle"
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
CONFIG_ZMK_HID_REPORT_TYPE_NKRO=n
CONFIG_ZMK_MOUSE=y
-1
View File
@@ -8,7 +8,6 @@ CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=3600000
# SPDX-License-Identifier: MIT
#
CONFIG_ZMK_SLEEP=y
CONFIG_WS2812_STRIP=y
CONFIG_ZMK_RGB_UNDERGLOW=y
CONFIG_ZMK_RGB_UNDERGLOW_EXT_POWER=n
+34 -4
View File
@@ -1,3 +1,5 @@
#define ZMK_MOUSE_DEFAULT_SCRL_VAL 35 // 10
#include <behaviors/mouse_keys.dtsi>
#include <behaviors.dtsi>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/ext_power.h>
@@ -5,6 +7,18 @@
#include <dt-bindings/zmk/mouse.h>
#include <dt-bindings/zmk/rgb.h>
&msc {
acceleration-exponent = <0>; // 0
time-to-max-speed-ms = <0>; // 300
delay-ms = <0>; // 0
};
&mmv {
time-to-max-speed-ms = <400>;
acceleration-exponent = <1>;
};
/ {
macros {
flash_macro: flash_macro {
@@ -45,6 +59,20 @@
tapping-term-ms = <135>;
quick-tap-ms = <0>;
};
rgb_encoder: rgb_encoder {
compatible = "zmk,behavior-sensor-rotate";
label = "RGB_ENCODER";
#sensor-binding-cells = <0>;
bindings = <&rgb_ug RGB_BRI>, <&rgb_ug RGB_BRD>;
};
scroll_encoder: scroll_encoder {
compatible = "zmk,behavior-sensor-rotate";
#sensor-binding-cells = <0>;
bindings = <&msc SCRL_UP>, <&msc SCRL_DOWN>;
tap-ms = <30>;
};
};
keymap {
@@ -121,18 +149,20 @@
>;
label = "Rgb";
sensor-bindings = <&rgb_encoder &scroll_encoder>;
};
Mouse {
bindings = <
&trans &trans &trans &trans &trans &trans &kp UP_ARROW &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &kp DOWN &trans &trans &kp UP &trans &trans &trans
&trans &trans &trans &trans &trans &trans &kp LEFT &trans &kp LEFT &kp DOWN &kp RIGHT &trans &trans
&trans &trans &trans &trans &trans &trans &kp RIGHT &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &mmv MOVE_UP &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &mmv MOVE_DOWN &trans &trans &mmv MOVE_UP &trans &trans &trans
&trans &trans &trans &trans &trans &trans &mmv MOVE_LEFT &trans &mmv MOVE_LEFT &mmv MOVE_DOWN &mmv MOVE_RIGHT &trans &trans
&trans &trans &trans &trans &trans &trans &mmv MOVE_RIGHT &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &mkp LCLK &mkp RCLK &to 0 &mkp LCLK &mkp RCLK &trans &trans &trans
>;
label = "Mouse";
sensor-bindings = <&scroll_encoder>;
};
};
+7 -2
View File
@@ -1,11 +1,16 @@
manifest:
remotes:
- name: zmkfirmware
url-base: https://github.com/zmkfirmware
url-base: https://github.com/petejohanson
- name: gpeye
url-base: https://github.com/GPeye
projects:
- name: zmk
remote: zmkfirmware
revision: main
revision: feat/pointers-move-scroll
import: app/west.yml
- name: urchin-peripheral-animation
remote: gpeye
revision: main
self:
path: config