diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d74fb89f..8735e7b5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,4 +2,4 @@ on: [push, pull_request, workflow_dispatch] jobs: build: - uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@main + uses: petejohanson/zmk/.github/workflows/build-user-config.yml@core/zephyr-3.5-update diff --git a/config/base.keymap b/config/base.keymap index c30d54b3..6a85f786 100644 --- a/config/base.keymap +++ b/config/base.keymap @@ -16,6 +16,9 @@ #define FUNC 8 #define ADJUST 9 #define LOWER 10 +#define MOUSE_KEYS 11 +#define MOUSE_TP 12 +#define MOUSE_SET 13 // ZMK includes @@ -27,6 +30,14 @@ // Personal includes +#ifdef HAS_MOUSE_KEYS + #include "includes/mouse_keys.dtsi" +#endif + +#ifdef HAS_MOUSE_TP + #include "includes/mouse_tp.dtsi" +#endif + #include "includes/custom_keycodes.dtsi" #include "includes/settings.dtsi" //#include "includes/settings_pd.dtsi" @@ -218,5 +229,58 @@ >; // sensor-bindings = <&inc_dec_kp C_BRI_DN C_BRI_UP &inc_dec_kp LEFT RIGHT>; }; + +#ifdef HAS_MOUSE_KEYS + MouseKeys_layer { + display-name = "MouseKeys"; + bindings = < +// ╭────────────────────────┬────────────────────────┬────────────────────────┬────────────────────────┬────────────────────────┬────────────────────────╮ ╭────────────────────────┬────────────────────────┬────────────────────────┬────────────────────────┬────────────────────────┬────────────────────────╮ + &trans &none &none &none &msc SCRL_DOWN &none &none &none &none &none &none &trans +// ├────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┤ ├────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┤ + &trans &none &mmv MOVE_LEFT &mmv MOVE_UP &mmv MOVE_RIGHT &none &none &none &none &none &none &trans +// ├────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┤ ├────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┤ + &trans &none &none &mmv MOVE_DOWN &msc SCRL_UP &none &none &none &none &none &none &trans +// ╰────────────────────────┴────────────────────────┴────────────────────────┴────────────────────────┼────────────────────────┼────────────────────────┤ ├────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┴────────────────────────┼────────────────────────╯ + &tog MOUSE_KEYS &mkp LCLK &mkp RCLK &mkp MCLK &mkp LCLK &mkp RCLK +// ╰────────────────────────┴────────────────────────┴────────────────────────╯ ╰────────────────────────┴────────────────────────┴────────────────────────╯ + >; + // sensor-bindings = <&inc_dec_kp C_BRI_DN C_BRI_UP &inc_dec_kp LEFT RIGHT>; + }; +#endif + +#ifdef HAS_MOUSE_TP + MouseTP_layer { + display-name = "TP"; + bindings = < +// ╭────────────────────────┬────────────────────────┬────────────────────────┬────────────────────────┬────────────────────────┬────────────────────────╮ ╭────────────────────────┬────────────────────────┬────────────────────────┬────────────────────────┬────────────────────────┬────────────────────────╮ + &tog MOUSE_SET &trans &trans &trans &trans &trans &trans &kp MY_BACK &kp MY_FWD &trans &trans &trans +// ├────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┤ ├────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┤ + &trans &trans &trans &msc SCRL_DOWN &trans &trans &trans &trans &msc SCRL_DOWN &trans &trans &trans +// ├────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┤ ├────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┤ + &trans &trans &trans &msc SCRL_UP &trans &trans &trans &trans &msc SCRL_UP &trans &trans &trans +// ╰────────────────────────┴────────────────────────┴────────────────────────┴────────────────────────┼────────────────────────┼────────────────────────┤ ├────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┴────────────────────────┼────────────────────────╯ + &tog MOUSE_TP &trans &trans &trans &mkp LCLK &mkp RCLK +// ╰────────────────────────┴────────────────────────┴────────────────────────╯ ╰────────────────────────┴────────────────────────┴────────────────────────╯ + >; + // sensor-bindings = <&inc_dec_kp C_BRI_DN C_BRI_UP &inc_dec_kp LEFT RIGHT>; + }; + + MouseSettings_layer { + display-name = "MouseSettings"; + bindings = < +// ╭────────────────────────┬────────────────────────┬────────────────────────┬────────────────────────┬────────────────────────┬────────────────────────╮ ╭────────────────────────┬────────────────────────┬────────────────────────┬────────────────────────┬────────────────────────┬────────────────────────╮ + &trans &none &none U_MSS_TP_S_D U_MSS_TP_S_I U_MSS_TP_PT_I &none &none &none &none &none U_MSS_RESET +// ├────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┤ ├────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┤ + &trans &none &none U_MSS_TP_NI_D U_MSS_TP_NI_I U_MSS_TP_PT_D &none &none &none &none &none U_MSS_LOG +// ├────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┤ ├────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┤ + &trans &none &none U_MSS_TP_V6_D U_MSS_TP_V6_I &none &none &none &none &none &none &trans +// ╰────────────────────────┴────────────────────────┴────────────────────────┴────────────────────────┼────────────────────────┼────────────────────────┤ ├────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┴────────────────────────┼────────────────────────╯ + &tog MOUSE_SET &mkp LCLK &mkp RCLK &none &mkp LCLK &mkp RCLK +// ╰────────────────────────┴────────────────────────┴────────────────────────╯ ╰────────────────────────┴────────────────────────┴────────────────────────╯ + >; + // sensor-bindings = <&inc_dec_kp C_BRI_DN C_BRI_UP &inc_dec_kp LEFT RIGHT>; + }; +#endif }; + }; diff --git a/config/boards/shields/think_corney/Kconfig.defconfig b/config/boards/shields/think_corney/Kconfig.defconfig index df144260..95659dcf 100644 --- a/config/boards/shields/think_corney/Kconfig.defconfig +++ b/config/boards/shields/think_corney/Kconfig.defconfig @@ -1,4 +1,6 @@ -if SHIELD_THINK_CORNEY_LEFT +# The side with the PS2 Mouse / TP has to be the central half + +if SHIELD_THINK_CORNEY_RIGHT config ZMK_KEYBOARD_NAME default "ThinkCorney" diff --git a/config/boards/shields/think_corney/think_corney.dtsi b/config/boards/shields/think_corney/think_corney.dtsi index a042f9c2..e2af213b 100644 --- a/config/boards/shields/think_corney/think_corney.dtsi +++ b/config/boards/shields/think_corney/think_corney.dtsi @@ -75,3 +75,179 @@ nice_view_spi: &spi0 { &pro_micro_i2c { status = "disabled"; }; + +/* + * PS/2 Mouse / Trackpoint + */ + +// Configure the SCL and SDA pins of the PS/2 mouse/tp using the `&pro_micro` +// notation. +// +// If possible, try to choose the blue high frequency pins to avoid +// bluetooth interference. +// +// On the nice!nano documentation these are green DX pins: +// https://nicekeyboards.com/docs/nice-nano/pinout-schematic +// +#define MOUSE_PS2_PIN_SCL_PRO_MICRO <&pro_micro 1 GPIO_ACTIVE_HIGH> +#define MOUSE_PS2_PIN_SDA_PRO_MICRO <&pro_micro 0 GPIO_ACTIVE_HIGH> + + +// Uncomment and configure this pin if you have an extra free pin and want the +// controller to perform the Power-On-Reset sequence, which many trackpoints +// require, instead of using a trackpoint reset circuit. +// +// It's ok to use a low-frequency pin for this. +// #define MOUSE_PS2_PIN_RST_PRO_MICRO <&pro_micro 9 GPIO_ACTIVE_HIGH> + + +// Now configure the same SDA pin using the pinctrl notation. +// +// For that you have to use the PX.XX notation of the nrf52 chip. +// +// On the nice!nano pinout they are shown in blue and purple next to the green +// DX pin. +// +// Enter it like `X, Y` without leading zeroes. +// Examples: +// D0 - P0.08: 0, 8 +// D15 - P1.13: 1, 13 +// +// We don't define the SCL pin, because UART uses a baud rate instead of +// a clock pin. +#define MOUSE_PS2_PIN_SDA_PINCTRL + + +// In UART two different pins are used for receiving and transmitting, but PS/2 +// uses the same pin for both. +// +// The UART config still requires both pins to be configured. So we use one of +// the nrf52 pins that are not exposed on the nice!nano board. +#define MOUSE_PS2_PIN_UNEXPOSED_TX +#define MOUSE_PS2_PIN_UNEXPOSED_RX + + +// The PS/2 GPIO driver +/ { + gpio_ps2: gpio_ps2 { + status = "disabled"; + compatible = "gpio-ps2"; + scl-gpios = MOUSE_PS2_PIN_SCL_PRO_MICRO; + sda-gpios = MOUSE_PS2_PIN_SDA_PRO_MICRO; + }; +}; + + +&pinctrl { + // This pinctrl state is used for receiving + // For `UART_TX`, set an unused and unexposed pin + // For `UART_RX`, set the PS/2 SDA pin number + uart0_ps2_default: uart0_ps2_default { + group1 { + psels = MOUSE_PS2_PIN_UNEXPOSED_TX, + MOUSE_PS2_PIN_SDA_PINCTRL; + }; + }; + + // Set this to the same pins as uart0_ps2_default + uart0_ps2_sleep: uart0_ps2_sleep { + group1 { + psels = MOUSE_PS2_PIN_UNEXPOSED_TX, + MOUSE_PS2_PIN_SDA_PINCTRL; + low-power-enable; + }; + }; + + // The nrf52 UART controller is not compatible with the PS/2 + // transmission frame. So we don't use UART for transmissions + // and instead use GPIO bitbanging. + // + // When we switch to transmit mode, we free up the SDA pin by switching + // UART to unexposed/unused pins. + // + // Then we can configure the pins to be used with the GPIO controller. + uart0_ps2_off: uart0_ps2_off { + group1 { + psels = MOUSE_PS2_PIN_UNEXPOSED_TX, + MOUSE_PS2_PIN_UNEXPOSED_RX; + }; + }; +}; + + +&uart0 { + status = "disabled"; + compatible = "nordic,nrf-uarte"; + + // PS/2 uses a clock pin to syncronize data transmissions. UART on the + // other hand uses a pre-defined frequency (baud rate). + // + // Fortunately, one of the available baud rates is very close to the + // frequency used in IBM/Lenovo trackpoints. + // + // You can find other configurable baud rates here: + // https://docs.zephyrproject.org/latest/build/dts/api/bindings/serial/nordic,nrf-uarte.html + // + // But most likely you won't need to adjust this. + // + // You can measure the frequency of your mouse/TP using a $5 logic + // analyzer from AliExpress. + // + // Actual frequency of PS/2 trackpoint: 67us + // Correspondent baud rate: 14,925 + // + // Closest available baud rate in zephyr: 14,400 + // Correspondent cycle length: 69.44 microseconds + // + // Calculations: + // + // Convert cycle length in microseconds into baud: + // 1 / PS2_CYCLE_LENGTH * 1000000 = BAUD + // 1 / 67 * 1000000 = 14,925 BAUD + // + // Convert baud into cycle length: + // 1 / BAUD * 1000000 = CYCLE_LEN (in microseconds) + // 1 / 14400 * 1000000 = 69.44 + // + current-speed = <14400>; + pinctrl-0 = <&uart0_ps2_default>; + pinctrl-1 = <&uart0_ps2_off>; + + pinctrl-names = "default", "sleep"; + + uart_ps2: uart_ps2 { + status="disabled"; + compatible = "uart-ps2"; + scl-gpios = MOUSE_PS2_PIN_SCL_PRO_MICRO; + sda-gpios = MOUSE_PS2_PIN_SDA_PRO_MICRO; + }; +}; + + +/ { + mouse_ps2: mouse_ps2 { + status = "disabled"; + compatible = "zmk,input-mouse-ps2"; + + // This will be overriden in your `xxx_right.overlay file`. + // ps2-device = <&gpio_ps2>; + ps2-device = <&uart_ps2>; + +#ifdef MOUSE_PS2_PIN_RST_PRO_MICRO + rst-gpios = MOUSE_PS2_PIN_RST_PRO_MICRO; +#endif + }; + + input_config: input_config { + compatible = "zmk,input-configs"; + status = "disabled"; + + mouse_ps2_config: mouse_ps2_config { + device = <&mouse_ps2>; + + // Some of the available settings depend on the keymap. So they + // are adjusted in... + // ../../../includes/trackpoint.dtsi + }; + }; +}; diff --git a/config/boards/shields/think_corney/think_corney_right.overlay b/config/boards/shields/think_corney/think_corney_right.overlay index 8a6a2638..5ec79811 100644 --- a/config/boards/shields/think_corney/think_corney_right.overlay +++ b/config/boards/shields/think_corney/think_corney_right.overlay @@ -24,3 +24,258 @@ , <&pro_micro 21 GPIO_ACTIVE_HIGH> ; }; + +/* + * PS/2 Mouse / Trackpoint + */ + +// Enable PS/2 drivers on this side of the keyboard. +// MUST be the central. +// +// Comment out the following define to use the GPIO driver instead of UART +// (this is not recommended unless you can't use the UART driver for whatever +// reason) +#define MOUSE_PS2_DRIVER_UART + +#ifdef MOUSE_PS2_DRIVER_UART + &uart0 { + status = "okay"; + }; + &uart_ps2 { + status = "okay"; + }; +#else + &gpio_ps2 { + status = "okay"; + }; +#endif + +&mouse_ps2 { + status = "okay"; + +#ifdef MOUSE_PS2_DRIVER_UART + ps2-device = <&uart_ps2>; +#else + ps2-device = <&gpio_ps2>; +#endif +}; + +&input_config { + status = "okay"; +}; + +// Adjust GPIO interrupt priority to the highest level. +// +// PS/2 events must be processed within 30-50us, but frequently bluetooth and +// other interrupts take longer to finish. +// +// Therefore we change the default GPIO priority to the highest level (0) and +// demote all BT interrupt priorities by one level using the kconfig settings: +// - CONFIG_BT_CTLR_LLL_PRIO 1 +// - CONFIG_BT_CTLR_ULL_HIGH_PRIO 2 +// - CONFIG_BT_CTLR_ULL_LOW_PRIOCONFIG 2 +// +// These config options are enabled automatically by the PS2 UART and GPIO +// drivers... so you don't have to enable them manually. +// +// Then we lower the interrupt priority of all other devices by 2 levels using +// the devicetree config below. +// +// This allows the PS/2 interrupts to be triggered faster and reduces +// transmission errors. +// +// If you are using the nice_nano_v2 board, you can reuse my config below. +// +// Otherwise, you can generate the interrupt overrides using the following +// script in my zmk fork with the PS/2 mouse driver: +// app/scripts/gen_interrupt_priority_overrides.py +// +// Make sure to do it on a zephyr.dts where the interrupts have not been +// adjusted yet (i.e. a config that doesn't have the the following options +// enabled). +// +// If you are building using a toolchain you can find the zephyr.dts in the +// build directory, which by default is: `app/build/zephyr/zephyr.dts` +// +// If you are building using the github actions, copy the output of the build +// step `xxxx_right - nice_nano_v2 Devicetree file` into a file and run the +// script on it. + +// gpiote should have the highest interrupt priority (0) +&gpiote { + interrupts = < 6 0 >; +}; + +// All other priorities should be two levels lower than their defaults +// (which is usually 1 and should be demoted to 3) +&clock { + interrupts = < 0 3 >; +}; + +&power { + interrupts = < 0 3 >; +}; + +&radio { + interrupts = < 1 3 >; +}; + +&uart0 { + interrupts = < 2 3 >; +}; + +&i2c0 { + interrupts = < 3 3 >; +}; + +&spi0 { + interrupts = < 3 3 >; +}; + +&i2c1 { + interrupts = < 4 3 >; +}; + +&spi1 { + interrupts = < 4 3 >; +}; + +&nfct { + interrupts = < 5 3 >; +}; + +&adc { + interrupts = < 7 3 >; +}; + +&timer0 { + interrupts = < 8 3 >; +}; + +&timer1 { + interrupts = < 9 3 >; +}; + +&timer2 { + interrupts = < 10 3 >; +}; + +&rtc0 { + interrupts = < 11 3 >; +}; + +&temp { + interrupts = < 12 3 >; +}; + +&rng { + interrupts = < 13 3 >; +}; + +&ecb { + interrupts = < 14 3 >; +}; + +&ccm { + interrupts = < 15 3 >; +}; + +&wdt { + interrupts = < 16 3 >; +}; + +&rtc1 { + interrupts = < 17 3 >; +}; + +&qdec { + interrupts = < 18 3 >; +}; + +&comp { + interrupts = < 19 3 >; +}; + +&egu0 { + interrupts = < 20 3 >; +}; + +&egu1 { + interrupts = < 21 3 >; +}; + +&egu2 { + interrupts = < 22 3 >; +}; + +&egu3 { + interrupts = < 23 3 >; +}; + +&egu4 { + interrupts = < 24 3 >; +}; + +&egu5 { + interrupts = < 25 3 >; +}; + +&timer3 { + interrupts = < 26 3 >; +}; + +&timer4 { + interrupts = < 27 3 >; +}; + +&pwm0 { + interrupts = < 28 3 >; +}; + +&pdm0 { + interrupts = < 29 3 >; +}; + +&pwm1 { + interrupts = < 33 3 >; +}; + +&pwm2 { + interrupts = < 34 3 >; +}; + +&spi2 { + interrupts = < 35 3 >; +}; + +&rtc2 { + interrupts = < 36 3 >; +}; + +&i2s0 { + interrupts = < 37 3 >; +}; + +&usbd { + interrupts = < 39 3 >; +}; + +&uart1 { + interrupts = < 40 3 >; +}; + +&qspi { + interrupts = < 41 3 >; +}; + +&pwm3 { + interrupts = < 45 3 >; +}; + +&spi3 { + interrupts = < 47 3 >; +}; + +&cryptocell { + interrupts = < 42 3 >; +}; diff --git a/config/includes/combos.dtsi b/config/includes/combos.dtsi index 9114c499..d476c460 100644 --- a/config/includes/combos.dtsi +++ b/config/includes/combos.dtsi @@ -206,5 +206,42 @@ #endif }; + +#ifdef HAS_MOUSE_TP + combo_tog_mouse_settings_l { + timeout-ms = ; + // require-prior-idle-ms = ; + key-positions = ; + layers = ; + bindings = <&tog MOUSE_SET>; + }; + + combo_tog_mouse_settings_r { + timeout-ms = ; + // require-prior-idle-ms = ; + key-positions = ; + layers = ; + bindings = <&tog MOUSE_SET>; + }; +#endif + +#ifdef HAS_MOUSE_KEYS + combo_tog_mouse_keys_l { + timeout-ms = ; + // require-prior-idle-ms = ; + key-positions = ; + layers = ; + bindings = <&tog MOUSE_KEYS>; + }; + + combo_tog_mouse_keys_r { + timeout-ms = ; + // require-prior-idle-ms = ; + key-positions = ; + layers = ; + bindings = <&tog MOUSE_KEYS>; + }; +#endif + }; }; diff --git a/config/includes/mouse_keys.dtsi b/config/includes/mouse_keys.dtsi new file mode 100644 index 00000000..aa98ed45 --- /dev/null +++ b/config/includes/mouse_keys.dtsi @@ -0,0 +1,15 @@ +#ifdef HAS_MOUSE_KEYS + #include +#endif + + +// Below are settings and behavior defines for mouse keys. +&mmv { + acceleration-exponent = <1>; // Default: 1 + time-to-max-speed-ms = <300>; // Default: 300 +}; + +&msc { + acceleration-exponent = <0>; // Default: 0 + time-to-max-speed-ms = <300>; // Default: 300 +}; diff --git a/config/includes/mouse_tp.dtsi b/config/includes/mouse_tp.dtsi new file mode 100644 index 00000000..033ca145 --- /dev/null +++ b/config/includes/mouse_tp.dtsi @@ -0,0 +1,72 @@ +#ifdef HAS_MOUSE_TP + #include + + // They key codes below can be used to adjust the TP settings. + #define U_MSS_TP_S_I &mms MS_TP_SENSITIVITY_INCR + #define U_MSS_TP_S_D &mms MS_TP_SENSITIVITY_DECR + + #define U_MSS_TP_NI_I &mms MS_TP_NEG_INERTIA_INCR + #define U_MSS_TP_NI_D &mms MS_TP_NEG_INERTIA_DECR + + #define U_MSS_TP_V6_I &mms MS_TP_VALUE6_INCR + #define U_MSS_TP_V6_D &mms MS_TP_VALUE6_DECR + + #define U_MSS_TP_PT_I &mms MS_TP_PTS_THRESHOLD_INCR + #define U_MSS_TP_PT_D &mms MS_TP_PTS_THRESHOLD_DECR + + #define U_MSS_RESET &mms MS_RESET + #define U_MSS_LOG &mms MS_LOG + + + &mouse_ps2 { + // Enables scroll wheel on mouse devices supporting the Intellimouse + // extension. + // scroll-mode; + + // Disables clicking. Useful when using a PS2 driver that is prone to + // erros in transmissions to reduce accidental clicks. + // disable-clicking; + + // The frequency at which the mouse samples and sends data (in hz). + // The default rate is 100. You can try lowering it if you experience + // connection errors. + // These values are allowed: 10,20,40,60,80,100,200 + // sampling-rate = <60>; + + // Enable clicking by tapping on the TP + // tp-press-to-select; + // tp-press-to-select-threshold = <10>; + + // How sensitive the TP is + tp-sensitivity = <130>; + + // The maximum mouse movement speed the TP will accelarate to + tp-val6-upper-speed = <182>; + + // Not quite sure what it does tbh :) + tp-neg-inertia = <6>; + + // Adjusts axis settings on the TP + // Works only on some trackpoints, but may be properly considered by the + // trackpoint's acceleration features (which may or may not have an + // impact). Alternatively consider achieving the same effect using the + // `zmk,input-configs` feature. + // tp-xy-swap; + // tp-x-invert; + // tp-y-invert; + + }; + + + &mouse_ps2_config { + xy-swap; + x-invert; + y-invert; + + // Set the layer that should automatically activate when the mouse is + // moving. + layer-toggle = ; + }; + + +#endif diff --git a/config/think_corney.conf b/config/think_corney.conf index 0225569a..92779a41 100644 --- a/config/think_corney.conf +++ b/config/think_corney.conf @@ -18,6 +18,15 @@ CONFIG_ZMK_WIDGET_WPM_STATUS=n CONFIG_ZMK_SLEEP=y CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=900000 +# +# Configure PS2 Mouse Settings +# + +# Enable additional error mitigations to prevent cursor jumps +# Disabled by default and only recommended if using the GPIO PS2 driver +# CONFIG_ZMK_INPUT_MOUSE_PS2_ENABLE_ERROR_MITIGATION=n + + # # System Settings # diff --git a/config/think_corney.keymap b/config/think_corney.keymap index 2ba077ed..0188b727 100644 --- a/config/think_corney.keymap +++ b/config/think_corney.keymap @@ -6,7 +6,9 @@ #define KEYS_T LH2 LH1 LH0 RH0 RH1 RH2 /* Enable keymap features that require forks */ -// #define HAS_UROB +#define HAS_UROB +#define HAS_MOUSE_KEYS +#define HAS_MOUSE_TP // #define HAS_CAPSLOCK /* source the main keymap */ diff --git a/config/west.yml b/config/west.yml index 379d2919..e935c453 100644 --- a/config/west.yml +++ b/config/west.yml @@ -2,10 +2,14 @@ manifest: remotes: - name: zmkfirmware url-base: https://github.com/zmkfirmware + - name: urob + url-base: https://github.com/urob + - name: infused-kim + url-base: https://github.com/infused-kim projects: - name: zmk - remote: zmkfirmware - revision: main + remote: infused-kim + revision: pr-testing/mouse_ps2_v2 import: app/west.yml self: path: config