From 06e17941ccb9b87fb6eed28c207b6d104508aed3 Mon Sep 17 00:00:00 2001 From: Damon-Lee Pointon <51855558+DLBPointon@users.noreply.github.com> Date: Sun, 18 Aug 2024 13:03:52 +0100 Subject: [PATCH 01/10] Delete config/sof.conf --- config/sof.conf | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 config/sof.conf diff --git a/config/sof.conf b/config/sof.conf deleted file mode 100644 index b76cc26..0000000 --- a/config/sof.conf +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright (c) 2020 Ryan Cross -# SPDX-License-Identifier: MIT - -# Uncomment the following line to enable the Sof OLED Display -CONFIG_ZMK_DISPLAY=y - -# Uncomment these two lines to add support for encoders -CONFIG_EC11=y -CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y - -# Adding some widgets -CONFIG_ZMK_WIDGET_BATTERY_STATUS_SHOW_PERCENTAGE=y -CONFIG_ZMK_WIDGET_WPM_STATUS=y - -# Bluetooth configs -CONFIG_ZMK_BLE_EXPERIMENTAL_CONN=y -CONFIG_BT_CTLR_TX_PWR_PLUS_8=y - -# Uncomment this line below to add rgb underglow / backlight support -# CONFIG_ZMK_RGB_UNDERGLOW=y - -# Uncomment the line below to disable external power toggling by the underglow. -# By default toggling the underglow on and off also toggles external power -# on and off. This also causes the display to turn off. -# CONFIG_ZMK_RGB_UNDERGLOW_EXT_POWER=n From 557aab005265181fac487880e379267c18de67ca Mon Sep 17 00:00:00 2001 From: Damon-Lee Pointon <51855558+DLBPointon@users.noreply.github.com> Date: Sun, 18 Aug 2024 13:04:18 +0100 Subject: [PATCH 02/10] Delete boards/shields/sof directory --- boards/shields/sof/Kconfig.defconfig | 52 ---------------- boards/shields/sof/Kconfig.shield | 8 --- boards/shields/sof/sof.dtsi | 88 ---------------------------- boards/shields/sof/sof.zmk.yml | 15 ----- boards/shields/sof/sof_left.config | 2 - boards/shields/sof/sof_left.overlay | 22 ------- boards/shields/sof/sof_right.config | 2 - boards/shields/sof/sof_right.overlay | 26 -------- 8 files changed, 215 deletions(-) delete mode 100644 boards/shields/sof/Kconfig.defconfig delete mode 100644 boards/shields/sof/Kconfig.shield delete mode 100644 boards/shields/sof/sof.dtsi delete mode 100644 boards/shields/sof/sof.zmk.yml delete mode 100644 boards/shields/sof/sof_left.config delete mode 100644 boards/shields/sof/sof_left.overlay delete mode 100644 boards/shields/sof/sof_right.config delete mode 100644 boards/shields/sof/sof_right.overlay diff --git a/boards/shields/sof/Kconfig.defconfig b/boards/shields/sof/Kconfig.defconfig deleted file mode 100644 index 23e5438..0000000 --- a/boards/shields/sof/Kconfig.defconfig +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright (c) 2020 Ryan Cross -# SPDX-License-Identifier: MIT - -if SHIELD_SOF_LEFT - -config ZMK_KEYBOARD_NAME - default "SOF" - -config ZMK_SPLIT_ROLE_CENTRAL - default y - -endif - -if SHIELD_SOF_LEFT || SHIELD_SOF_RIGHT - -config ZMK_SPLIT - default y - -if ZMK_DISPLAY - -config I2C - default y - -config SSD1306 - default y - -endif # ZMK_DISPLAY - -if LVGL - -config LV_Z_VDB_SIZE - default 64 - -config LV_DPI_DEF - default 148 - -config LV_Z_BITS_PER_PIXEL - default 1 - -choice LV_COLOR_DEPTH - default LV_COLOR_DEPTH_1 -endchoice - -endif # LVGL - -if ZMK_RGB_UNDERGLOW - -config WS2812_STRIP - default y -endif - -endif \ No newline at end of file diff --git a/boards/shields/sof/Kconfig.shield b/boards/shields/sof/Kconfig.shield deleted file mode 100644 index 28509f0..0000000 --- a/boards/shields/sof/Kconfig.shield +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) 2020 Ryan Cross -# SPDX-License-Identifier: MIT - -config SHIELD_SOF_LEFT - def_bool $(shields_list_contains,sof_left) - -config SHIELD_SOF_RIGHT - def_bool $(shields_list_contains,sof_right) \ No newline at end of file diff --git a/boards/shields/sof/sof.dtsi b/boards/shields/sof/sof.dtsi deleted file mode 100644 index f50c061..0000000 --- a/boards/shields/sof/sof.dtsi +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright (c) 2020 Pete Johanson, Ryan Cross - * - * SPDX-License-Identifier: MIT - */ - -#include - -/ { - chosen { - zephyr,display = &oled; - zmk,kscan = &kscan0; - zmk,matrix-transform = &default_transform; - }; - - default_transform: keymap_transform_0 { - compatible = "zmk,matrix-transform"; - columns = <16>; - rows = <4>; -// | SW6 | SW5 | SW4 | SW3 | SW2 | SW1 | | SW1 | SW2 | SW3 | SW4 | SW5 | SW6 | -// | SW12 | SW11 | SW10 | SW9 | SW8 | SW7 | | SW7 | SW8 | SW9 | SW10 | SW11 | SW12 | -// | SW18 | SW17 | SW16 | SW15 | SW14 | SW13 | | SW13 | SW14 | SW15 | SW16 | SW17 | SW18 | -// | SW24 | SW23 | SW22 | SW21 | SW20 | SW19 | SW25 | | SW25 | SW19 | SW20 | SW21 | SW22 | SW23 | SW24 | -// | SW30 | SW29 | SW28 | SW27 | SW26 | | SW26 | SW27 | SW28 | SW29 | SW30 | - map = < -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) RC(0,10) RC(0,11) -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) RC(1,10) RC(1,11) -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) RC(2,10) RC(2,11) -RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(4,5) RC(4,6) RC(3,6) RC(3,7) RC(3,8) RC(3,9) RC(3,10) RC(3,11) - RC(4,0) RC(4,1) RC(4,2) RC(4,3) RC(4,4) RC(4,7) RC(4,8) RC(4,9) RC(4,10) RC(4,11) - >; - }; - - kscan0: kscan { - compatible = "zmk,kscan-gpio-matrix"; - - diode-direction = "col2row"; - row-gpios - = <&pro_micro 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> - , <&pro_micro 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> - , <&pro_micro 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> - , <&pro_micro 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> - , <&pro_micro 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> - ; - }; - - left_encoder: encoder_left { - compatible = "alps,ec11"; - a-gpios = <&pro_micro 21 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; - b-gpios = <&pro_micro 20 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; - steps = <80>; - status = "disabled"; - }; - - right_encoder: encoder_right { - compatible = "alps,ec11"; - a-gpios = <&pro_micro 20 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; - b-gpios = <&pro_micro 21 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; - steps = <80>; - status = "disabled"; - }; - - sensors: sensors { - compatible = "zmk,keymap-sensors"; - sensors = <&left_encoder &right_encoder>; - triggers-per-rotation = <20>; - }; -}; - -&pro_micro_i2c { - status = "okay"; - - oled: ssd1306@3c { - compatible = "solomon,ssd1306fb"; - reg = <0x3c>; - width = <128>; - height = <32>; - segment-offset = <0>; - page-offset = <0>; - display-offset = <0>; - multiplex-ratio = <31>; - segment-remap; - com-invdir; - com-sequential; - inversion-on; - prechargep = <0x22>; - }; -}; \ No newline at end of file diff --git a/boards/shields/sof/sof.zmk.yml b/boards/shields/sof/sof.zmk.yml deleted file mode 100644 index 61f4bfc..0000000 --- a/boards/shields/sof/sof.zmk.yml +++ /dev/null @@ -1,15 +0,0 @@ -file_format: "1" -id: sof -name: sof -type: shield -url: https://github.com/DLBPointon -requires: [pro_micro] -exposes: [i2c_oled] -features: - - keys - - display - - encoder - - underglow -siblings: - - sof_left - - sof_right \ No newline at end of file diff --git a/boards/shields/sof/sof_left.config b/boards/shields/sof/sof_left.config deleted file mode 100644 index 751b937..0000000 --- a/boards/shields/sof/sof_left.config +++ /dev/null @@ -1,2 +0,0 @@ -# Copyright (c) 2020 Ryan Cross -# SPDX-License-Identifier: MIT \ No newline at end of file diff --git a/boards/shields/sof/sof_left.overlay b/boards/shields/sof/sof_left.overlay deleted file mode 100644 index 292acb6..0000000 --- a/boards/shields/sof/sof_left.overlay +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (c) 2020 Ryan Cross - * - * SPDX-License-Identifier: MIT - */ - -#include "sof.dtsi" - -&kscan0 { - col-gpios - = <&pro_micro 19 GPIO_ACTIVE_HIGH> - , <&pro_micro 18 GPIO_ACTIVE_HIGH> - , <&pro_micro 15 GPIO_ACTIVE_HIGH> - , <&pro_micro 4 GPIO_ACTIVE_HIGH> - , <&pro_micro 16 GPIO_ACTIVE_HIGH> - , <&pro_micro 10 GPIO_ACTIVE_HIGH> - ; -}; - -&left_encoder { - status = "okay"; -}; \ No newline at end of file diff --git a/boards/shields/sof/sof_right.config b/boards/shields/sof/sof_right.config deleted file mode 100644 index 751b937..0000000 --- a/boards/shields/sof/sof_right.config +++ /dev/null @@ -1,2 +0,0 @@ -# Copyright (c) 2020 Ryan Cross -# SPDX-License-Identifier: MIT \ No newline at end of file diff --git a/boards/shields/sof/sof_right.overlay b/boards/shields/sof/sof_right.overlay deleted file mode 100644 index 98aced5..0000000 --- a/boards/shields/sof/sof_right.overlay +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (c) 2020 Ryan Cross - * - * SPDX-License-Identifier: MIT - */ - -#include "sof.dtsi" - -&default_transform { - col-offset = <6>; -}; - -&kscan0 { - col-gpios - = <&pro_micro 10 GPIO_ACTIVE_HIGH> - , <&pro_micro 16 GPIO_ACTIVE_HIGH> - , <&pro_micro 14 GPIO_ACTIVE_HIGH> - , <&pro_micro 15 GPIO_ACTIVE_HIGH> - , <&pro_micro 18 GPIO_ACTIVE_HIGH> - , <&pro_micro 19 GPIO_ACTIVE_HIGH> - ; -}; - -&right_encoder { - status = "okay"; -}; \ No newline at end of file From 26b74d5252664bf0172962126d861a2ae1cfa801 Mon Sep 17 00:00:00 2001 From: Damon-Lee Pointon <51855558+DLBPointon@users.noreply.github.com> Date: Sun, 18 Aug 2024 13:05:30 +0100 Subject: [PATCH 03/10] Create sofle.dtsi adding sofle as new board --- boards/shields/sofle/sofle.dtsi | 88 +++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 boards/shields/sofle/sofle.dtsi diff --git a/boards/shields/sofle/sofle.dtsi b/boards/shields/sofle/sofle.dtsi new file mode 100644 index 0000000..f88339d --- /dev/null +++ b/boards/shields/sofle/sofle.dtsi @@ -0,0 +1,88 @@ +/* + * Copyright (c) 2020 Pete Johanson, Ryan Cross + * + * SPDX-License-Identifier: MIT + */ + +#include + +/ { + chosen { + zephyr,display = &oled; + zmk,kscan = &kscan0; + zmk,matrix-transform = &default_transform; + }; + + default_transform: keymap_transform_0 { + compatible = "zmk,matrix-transform"; + columns = <16>; + rows = <4>; +// | SW6 | SW5 | SW4 | SW3 | SW2 | SW1 | | SW1 | SW2 | SW3 | SW4 | SW5 | SW6 | +// | SW12 | SW11 | SW10 | SW9 | SW8 | SW7 | | SW7 | SW8 | SW9 | SW10 | SW11 | SW12 | +// | SW18 | SW17 | SW16 | SW15 | SW14 | SW13 | | SW13 | SW14 | SW15 | SW16 | SW17 | SW18 | +// | SW24 | SW23 | SW22 | SW21 | SW20 | SW19 | SW25 | | SW25 | SW19 | SW20 | SW21 | SW22 | SW23 | SW24 | +// | SW30 | SW29 | SW28 | SW27 | SW26 | | SW26 | SW27 | SW28 | SW29 | SW30 | + map = < +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) RC(0,10) RC(0,11) +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) RC(1,10) RC(1,11) +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) RC(2,10) RC(2,11) +RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(4,5) RC(4,6) RC(3,6) RC(3,7) RC(3,8) RC(3,9) RC(3,10) RC(3,11) + RC(4,0) RC(4,1) RC(4,2) RC(4,3) RC(4,4) RC(4,7) RC(4,8) RC(4,9) RC(4,10) RC(4,11) + >; + }; + + kscan0: kscan { + compatible = "zmk,kscan-gpio-matrix"; + + diode-direction = "col2row"; + row-gpios + = <&pro_micro 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> + , <&pro_micro 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> + , <&pro_micro 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> + , <&pro_micro 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> + , <&pro_micro 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> + ; + }; + + left_encoder: encoder_left { + compatible = "alps,ec11"; + a-gpios = <&pro_micro 21 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; + b-gpios = <&pro_micro 20 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; + steps = <80>; + status = "disabled"; + }; + + right_encoder: encoder_right { + compatible = "alps,ec11"; + a-gpios = <&pro_micro 20 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; + b-gpios = <&pro_micro 21 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; + steps = <80>; + status = "disabled"; + }; + + sensors: sensors { + compatible = "zmk,keymap-sensors"; + sensors = <&left_encoder &right_encoder>; + triggers-per-rotation = <20>; + }; +}; + +&pro_micro_i2c { + status = "okay"; + + oled: ssd1306@3c { + compatible = "solomon,ssd1306fb"; + reg = <0x3c>; + width = <128>; + height = <32>; + segment-offset = <0>; + page-offset = <0>; + display-offset = <0>; + multiplex-ratio = <31>; + segment-remap; + com-invdir; + com-sequential; + inversion-on; + prechargep = <0x22>; + }; +}; From 875126f986ba87aba57770343add08cf4856eb3d Mon Sep 17 00:00:00 2001 From: Damon-Lee Pointon <51855558+DLBPointon@users.noreply.github.com> Date: Sun, 18 Aug 2024 13:29:14 +0100 Subject: [PATCH 04/10] Create Kconfig.shield --- boards/shields/sofle/Kconfig.shield | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 boards/shields/sofle/Kconfig.shield diff --git a/boards/shields/sofle/Kconfig.shield b/boards/shields/sofle/Kconfig.shield new file mode 100644 index 0000000..a865e83 --- /dev/null +++ b/boards/shields/sofle/Kconfig.shield @@ -0,0 +1,8 @@ +# Copyright (c) 2020 Ryan Cross +# SPDX-License-Identifier: MIT + +config SHIELD_SOFLE_LEFT + def_bool $(shields_list_contains,sofle_left) + +config SHIELD_SOFLE_RIGHT + def_bool $(shields_list_contains,sofle_right) From bf5cb64f44dba68c5e5c7a87588e9ea3d6b2a448 Mon Sep 17 00:00:00 2001 From: Damon-Lee Pointon <51855558+DLBPointon@users.noreply.github.com> Date: Sun, 18 Aug 2024 13:30:07 +0100 Subject: [PATCH 05/10] Create Kconfig.defconfig --- boards/shields/sofle/Kconfig.defconfig | 52 ++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 boards/shields/sofle/Kconfig.defconfig diff --git a/boards/shields/sofle/Kconfig.defconfig b/boards/shields/sofle/Kconfig.defconfig new file mode 100644 index 0000000..4106eaf --- /dev/null +++ b/boards/shields/sofle/Kconfig.defconfig @@ -0,0 +1,52 @@ +# Copyright (c) 2020 Ryan Cross +# SPDX-License-Identifier: MIT + +if SHIELD_SOFLE_LEFT + +config ZMK_KEYBOARD_NAME + default "SOFLE" + +config ZMK_SPLIT_ROLE_CENTRAL + default y + +endif + +if SHIELD_SOFLE_LEFT || SHIELD_SOFLE_RIGHT + +config ZMK_SPLIT + default y + +if ZMK_DISPLAY + +config I2C + default y + +config SSD1306 + default y + +endif # ZMK_DISPLAY + +if LVGL + +config LV_Z_VDB_SIZE + default 64 + +config LV_DPI_DEF + default 148 + +config LV_Z_BITS_PER_PIXEL + default 1 + +choice LV_COLOR_DEPTH + default LV_COLOR_DEPTH_1 +endchoice + +endif # LVGL + +if ZMK_RGB_UNDERGLOW + +config WS2812_STRIP + default y +endif + +endif From 703f2c6cb939bebdb80d9c334ea2a14f414e78d0 Mon Sep 17 00:00:00 2001 From: Damon-Lee Pointon <51855558+DLBPointon@users.noreply.github.com> Date: Sun, 18 Aug 2024 13:30:59 +0100 Subject: [PATCH 06/10] Create sofle.zmk.yml --- boards/shields/sofle/sofle.zmk.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 boards/shields/sofle/sofle.zmk.yml diff --git a/boards/shields/sofle/sofle.zmk.yml b/boards/shields/sofle/sofle.zmk.yml new file mode 100644 index 0000000..d359530 --- /dev/null +++ b/boards/shields/sofle/sofle.zmk.yml @@ -0,0 +1,15 @@ +file_format: "1" +id: sofle +name: sofle +type: shield +url: https://github.com/DLBPointon +requires: [pro_micro] +exposes: [i2c_oled] +features: + - keys + - display + - encoder + - underglow +siblings: + - sofle_left + - sofle_right From 622348903c2710fded4bb0711ce10b525c8101dc Mon Sep 17 00:00:00 2001 From: Damon-Lee Pointon <51855558+DLBPointon@users.noreply.github.com> Date: Sun, 18 Aug 2024 13:33:16 +0100 Subject: [PATCH 07/10] Create sofle_left.config --- boards/shields/sofle/sofle_left.config | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 boards/shields/sofle/sofle_left.config diff --git a/boards/shields/sofle/sofle_left.config b/boards/shields/sofle/sofle_left.config new file mode 100644 index 0000000..e813720 --- /dev/null +++ b/boards/shields/sofle/sofle_left.config @@ -0,0 +1,2 @@ +# Copyright (c) 2020 Ryan Cross +# SPDX-License-Identifier: MIT From 5f02550f1826b910c7de321bf8619dc64738b29f Mon Sep 17 00:00:00 2001 From: Damon-Lee Pointon <51855558+DLBPointon@users.noreply.github.com> Date: Sun, 18 Aug 2024 13:33:29 +0100 Subject: [PATCH 08/10] Create sofle_right.config --- boards/shields/sofle/sofle_right.config | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 boards/shields/sofle/sofle_right.config diff --git a/boards/shields/sofle/sofle_right.config b/boards/shields/sofle/sofle_right.config new file mode 100644 index 0000000..e813720 --- /dev/null +++ b/boards/shields/sofle/sofle_right.config @@ -0,0 +1,2 @@ +# Copyright (c) 2020 Ryan Cross +# SPDX-License-Identifier: MIT From af2f834c32973467be483fd80d620d71a36ec123 Mon Sep 17 00:00:00 2001 From: Damon-Lee Pointon <51855558+DLBPointon@users.noreply.github.com> Date: Sun, 18 Aug 2024 13:35:15 +0100 Subject: [PATCH 09/10] Create sofle-left.overlay --- boards/shields/sofle/sofle-left.overlay | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 boards/shields/sofle/sofle-left.overlay diff --git a/boards/shields/sofle/sofle-left.overlay b/boards/shields/sofle/sofle-left.overlay new file mode 100644 index 0000000..7cd791f --- /dev/null +++ b/boards/shields/sofle/sofle-left.overlay @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2020 Ryan Cross + * + * SPDX-License-Identifier: MIT + */ + +#include "sofle.dtsi" + +&kscan0 { + col-gpios + = <&pro_micro 19 GPIO_ACTIVE_HIGH> + , <&pro_micro 18 GPIO_ACTIVE_HIGH> + , <&pro_micro 15 GPIO_ACTIVE_HIGH> + , <&pro_micro 4 GPIO_ACTIVE_HIGH> + , <&pro_micro 16 GPIO_ACTIVE_HIGH> + , <&pro_micro 10 GPIO_ACTIVE_HIGH> + ; +}; + +&left_encoder { + status = "okay"; +}; From 404c98c6c51371ee9d270110a213b96b3788a950 Mon Sep 17 00:00:00 2001 From: Damon-Lee Pointon <51855558+DLBPointon@users.noreply.github.com> Date: Sun, 18 Aug 2024 13:35:43 +0100 Subject: [PATCH 10/10] Create sofle-right.overlay --- boards/shields/sofle/sofle-right.overlay | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 boards/shields/sofle/sofle-right.overlay diff --git a/boards/shields/sofle/sofle-right.overlay b/boards/shields/sofle/sofle-right.overlay new file mode 100644 index 0000000..65e5f33 --- /dev/null +++ b/boards/shields/sofle/sofle-right.overlay @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2020 Ryan Cross + * + * SPDX-License-Identifier: MIT + */ + +#include "sofle.dtsi" + +&default_transform { + col-offset = <6>; +}; + +&kscan0 { + col-gpios + = <&pro_micro 10 GPIO_ACTIVE_HIGH> + , <&pro_micro 16 GPIO_ACTIVE_HIGH> + , <&pro_micro 14 GPIO_ACTIVE_HIGH> + , <&pro_micro 15 GPIO_ACTIVE_HIGH> + , <&pro_micro 18 GPIO_ACTIVE_HIGH> + , <&pro_micro 19 GPIO_ACTIVE_HIGH> + ; +}; + +&right_encoder { + status = "okay"; +};