Leeloo v2 and Leeloo v1 updates to support Zephyr 3.2
This commit is contained in:
parent
5c6f21b0e0
commit
69308eaffa
16 changed files with 515 additions and 119 deletions
|
@ -1,6 +1,16 @@
|
||||||
# Copyright (c) 2022 The ZMK Contributors
|
# Copyright (c) 2022 The ZMK Contributors
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
if SHIELD_LEELOO_REV2_LEFT
|
||||||
|
|
||||||
|
config ZMK_KEYBOARD_NAME
|
||||||
|
default "Leeloo v2"
|
||||||
|
|
||||||
|
config ZMK_SPLIT_ROLE_CENTRAL
|
||||||
|
default y
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
if SHIELD_LEELOO_LEFT
|
if SHIELD_LEELOO_LEFT
|
||||||
|
|
||||||
config ZMK_KEYBOARD_NAME
|
config ZMK_KEYBOARD_NAME
|
||||||
|
@ -11,7 +21,7 @@ config ZMK_SPLIT_ROLE_CENTRAL
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if SHIELD_LEELOO_LEFT || SHIELD_LEELOO_RIGHT
|
if SHIELD_LEELOO
|
||||||
|
|
||||||
config ZMK_SPLIT
|
config ZMK_SPLIT
|
||||||
default y
|
default y
|
||||||
|
@ -31,7 +41,6 @@ endif # ZMK_DISPLAY
|
||||||
|
|
||||||
if LVGL
|
if LVGL
|
||||||
|
|
||||||
|
|
||||||
config LV_Z_VDB_SIZE
|
config LV_Z_VDB_SIZE
|
||||||
default 64
|
default 64
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,21 @@
|
||||||
# Copyright (c) 2022 The ZMK Contributors
|
# Copyright (c) 2022 The ZMK Contributors
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
config SHIELD_LEELOO
|
||||||
|
bool
|
||||||
|
|
||||||
config SHIELD_LEELOO_LEFT
|
config SHIELD_LEELOO_LEFT
|
||||||
def_bool $(shields_list_contains,leeloo_left)
|
def_bool $(shields_list_contains,leeloo_left)
|
||||||
|
select SHIELD_LEELOO
|
||||||
|
|
||||||
config SHIELD_LEELOO_RIGHT
|
config SHIELD_LEELOO_RIGHT
|
||||||
def_bool $(shields_list_contains,leeloo_right)
|
def_bool $(shields_list_contains,leeloo_right)
|
||||||
|
select SHIELD_LEELOO
|
||||||
|
|
||||||
|
config SHIELD_LEELOO_REV2_LEFT
|
||||||
|
def_bool $(shields_list_contains,leeloo_rev2_left)
|
||||||
|
select SHIELD_LEELOO
|
||||||
|
|
||||||
|
config SHIELD_LEELOO_REV2_RIGHT
|
||||||
|
def_bool $(shields_list_contains,leeloo_rev2_right)
|
||||||
|
select SHIELD_LEELOO
|
|
@ -1,39 +1,133 @@
|
||||||
# Clickety Split | Leeloo
|
# Clickety Split | Leeloo v2
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Keyboard Designer: [clicketysplit.ca](https://clicketysplit.ca)
|
Keyboard Designer: [clicketysplit.ca](https://clicketysplit.ca)
|
||||||
GitHub: [ClicketySplit](https://github.com/ClicketySplit)
|
GitHub: [ClicketySplit](https://github.com/ClicketySplit)
|
||||||
Hardware Supported: Pro Micro, Elite-C, nice!nano v2
|
Hardware Supported: Pro Micro, Elite-C, and nice!nano v2
|
||||||
|
|
||||||
Albeit, there is no doubt where Leeloo's heritage is derived from—Lily58, and Corne. It is not a copy-paste-modify implementation.
|
Leeloo v2 has been designed from scratch—again. Everything from the wiring schematic to its case. Leeloo v2 still keeps the column stagger that it's known for, along with its low profile design.
|
||||||
|
|
||||||
Leeloo has been designed from scratch; everything from the schematic to its PCB footprints, and column stagger. There are some subtle differences that may not be apparent; however, its subtle changes enable an interesting future.
|
## Features/Differences from Leeloo v1
|
||||||
|
* Support for Kailh Low Profile Choc switches with 18mm x 18mm spacing.
|
||||||
|
- A version for Kailh Box/MX switches with 19.05mm x 19.05mm spacing will be available in the future.
|
||||||
|
* All switch locations are socketed.
|
||||||
|
* Rotary encoder locations are socketed.
|
||||||
|
- One of two locations on each side can be used for a rotary encoder.
|
||||||
|
* OLED Displays and nice!view Displays are natively supported, socketed, and no extra wiring is required.
|
||||||
|
* Support for per-switch RGB underglow.
|
||||||
|
* Better location for 110mAh or 700mAh batteries.
|
||||||
|
- Different location for soldering battery leads.
|
||||||
|
* Support for Alps Alpine Micro On/off switches.
|
||||||
|
|
||||||
Features:
|
# Leeloo v1
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## Features
|
||||||
* 4x6x5m Split Keyboard
|
* 4x6x5m Split Keyboard
|
||||||
* Support for MX/Box or Low Profile Choc switches.
|
* Support for both Low Profile Choc switches, and Box/MX switches; 19.05mm x 19.05mm spacing.
|
||||||
* 90% of the switches are socketed; with the exception to the rotary encoder positions—6 positions require soldering.
|
* 90% of the switches are socketed; with the exception to the rotary encoder positions.
|
||||||
* Support for 128x32 OLED Displays.
|
* Support for Alps Alpine EC11 Rotary Encoders—one on each side, in one of three locations.
|
||||||
* The option to select one of three positions for an EC11 rotary encoder on each half.
|
* Support for OLED Displays or nice!view Displays.
|
||||||
* Support for Alps Alpine Micro Switch
|
- nice!view displays require a wire to be soldered from the CS Pin on nice!view display to P0.22 or D4 on the nice!nano.
|
||||||
* Support for 3.7v 301230 LiPo Battery
|
* Support for both 110mAh or 700mAh batteries.
|
||||||
|
* Solder pads for battery leads.
|
||||||
|
* Support for Alps Alpine Micro On/off switches.
|
||||||
|
|
||||||
# Building Your Firmware
|
# Building Leeloo's ZMK Firmware
|
||||||
ZMK Firmware: [Introduction to ZMK](https://zmk.dev/docs/)
|
ZMK Firmware: [Introduction to ZMK](https://zmk.dev/docs/)
|
||||||
Installation: [Installing ZMK](https://zmk.dev/docs/user-setup)
|
Installation: [Installing ZMK](https://zmk.dev/docs/user-setup)
|
||||||
Customization: [Customizing ZMK](https://zmk.dev/docs/customization)
|
Customization: [Customizing ZMK](https://zmk.dev/docs/customization)
|
||||||
Development Environment: [Basic Setup](https://zmk.dev/docs/development/setup)
|
Development Environment: [Basic Setup](https://zmk.dev/docs/development/setup)
|
||||||
|
|
||||||
Build command for the default keymap of Leeloo:
|
Build commands for the default keymap of Leeloo v1:
|
||||||
|
```
|
||||||
|
west build -d build/left -p -b nice_nano_v2 -- -DSHIELD=leeloo_left
|
||||||
|
west build -d build/right -p -b nice_nano_v2 -- -DSHIELD=leeloo_right
|
||||||
|
```
|
||||||
|
|
||||||
west build -d build/left -p -b nice_nano_v2 -- -DSHIELD=leeloo_left
|
Build commands for the default keymap of Leeloo v2:
|
||||||
west build -d build/right -p -b nice_nano_v2 -- -DSHIELD=leeloo_right
|
```
|
||||||
|
west build -d build/left_v2 -p -b nice_nano_v2 -- -DSHIELD=leeloo_rev2_left
|
||||||
|
west build -d build/right_v2 -p -b nice_nano_v2 -- -DSHIELD=leeloo_rev2_right
|
||||||
|
```
|
||||||
|
|
||||||
Build command for your custom keymap of Leeloo:
|
Build commands for your custom keymap of Leeloo v1:
|
||||||
|
```
|
||||||
|
west build -d build/right -p -b nice_nano_v2 -- -DSHIELD=leeloo_right -DZMK_CONFIG="C:/dev/zmk/[yourNmae]/leeloo/config"
|
||||||
|
west build -d build/left -p -b nice_nano_v2 -- -DSHIELD=leeloo_left -DZMK_CONFIG="C:/dev/zmk/[yourName]/leeloo/config"
|
||||||
|
```
|
||||||
|
|
||||||
west build -d build/right -p -b nice_nano_v2 -- -DSHIELD=leeloo_right -DZMK_CONFIG="C:/dev/zmk/[yourNmae]/leeloo/config"
|
Build commands for your custom keymap of Leeloo v2:
|
||||||
west build -d build/left -p -b nice_nano_v2 -- -DSHIELD=leeloo_left -DZMK_CONFIG="C:/dev/zmk/[yourName]/leeloo/config"
|
```
|
||||||
|
west build -d build/right_v2 -p -b nice_nano_v2 -- -DSHIELD=leeloo_rev2_right -DZMK_CONFIG="C:/dev/zmk/[yourNmae]/leeloo_v2/config"
|
||||||
|
west build -d build/left_v2 -p -b nice_nano_v2 -- -DSHIELD=leeloo_rev2_left -DZMK_CONFIG="C:/dev/zmk/[yourName]/leeloo_v2/config"
|
||||||
|
```
|
||||||
|
|
||||||
|
## Building Leeloo's ZMK Firmware with nice!view Displays
|
||||||
|
There are a couple of files that need to be adjusted before the build commands can be run.
|
||||||
|
|
||||||
|
### Edit the leeloo[_rev2].keymap File
|
||||||
|
Near the top 3rd of the leeloo[_rev2].keymap file, locate the following code block:
|
||||||
|
|
||||||
|
```
|
||||||
|
//nice_view_spi: &spi0 {
|
||||||
|
// compatible = "nordic,nrf-spim";
|
||||||
|
// pinctrl-0 = <&spi0_default>;
|
||||||
|
// pinctrl-1 = <&spi0_sleep>;
|
||||||
|
// pinctrl-names = "default", "sleep";
|
||||||
|
// cs-gpios = <&pro_micro 4 GPIO_ACTIVE_HIGH>;
|
||||||
|
//};
|
||||||
|
```
|
||||||
|
|
||||||
|
Remove the forward slashes to resemble the following:
|
||||||
|
```
|
||||||
|
nice_view_spi: &spi0 {
|
||||||
|
compatible = "nordic,nrf-spim";
|
||||||
|
pinctrl-0 = <&spi0_default>;
|
||||||
|
pinctrl-1 = <&spi0_sleep>;
|
||||||
|
pinctrl-names = "default", "sleep";
|
||||||
|
cs-gpios = <&pro_micro 4 GPIO_ACTIVE_HIGH>;
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
Save your changes and close the file.
|
||||||
|
|
||||||
|
### Edit the leeloo[_rev2].conf file:
|
||||||
|
Near the top of the leeloo[_rev2].conf file, locate the following line items:
|
||||||
|
|
||||||
|
```
|
||||||
|
# Uncomment the following line to enable the OLED Display or nice!view Display
|
||||||
|
# CONFIG_ZMK_DISPLAY=y
|
||||||
|
```
|
||||||
|
|
||||||
|
Remove the # character in front of the CONFIG_ZMK_DISPLAY configuration item to resemble the following:
|
||||||
|
```
|
||||||
|
# Uncomment the following line to enable the OLED Display or nice!view Display
|
||||||
|
CONFIG_ZMK_DISPLAY=y
|
||||||
|
```
|
||||||
|
|
||||||
|
Save your changes and close the file.
|
||||||
|
|
||||||
|
### Sample Build Commands for nice!view Displays
|
||||||
|
Build commands for the default keymap of Leeloo v1:
|
||||||
|
```
|
||||||
|
west build -d build/left -p -b nice_nano_v2 -- -DSHIELD="leeloo_left nice_view_adapter nice_view"
|
||||||
|
west build -d build/right -p -b nice_nano_v2 -- -DSHIELD="leeloo_right nice_view_adapter nice_view"
|
||||||
|
```
|
||||||
|
|
||||||
|
Build commands for the default keymap of Leeloo v2:
|
||||||
|
```
|
||||||
|
west build -d build/left_v2 -p -b nice_nano_v2 -- -DSHIELD="leeloo_rev2_left nice_view_adapter nice_view"
|
||||||
|
west build -d build/right_v2 -p -b nice_nano_v2 -- -DSHIELD="leeloo_rev2_right nice_view_adapter nice_view"
|
||||||
|
```
|
||||||
|
|
||||||
|
Build commands for your custom keymap of Leeloo v2:
|
||||||
|
```
|
||||||
|
west build -d build/left -p -b nice_nano_v2 -- -DSHIELD="leeloo_rev2_left nice_view_adapter nice_view" -DZMK_CONFIG="/workspaces/zmk-config/[yourNmae]/leeloo_v2/config"
|
||||||
|
west build -d build/right -p -b nice_nano_v2 -- -DSHIELD="leeloo_rev2_right nice_view_adapter nice_view" -DZMK_CONFIG="/workspaces/zmk-config/[yourNmae]/leeloo_v2/config"
|
||||||
|
```
|
||||||
|
|
||||||
# Support
|
# Support
|
||||||
If you have any questions with regards to Leeloo, please [Contact Us](https://clicketysplit.ca/pages/contact-us).
|
If you have any questions with regards to Leeloo, please [Contact Us](https://clicketysplit.ca/pages/contact-us).
|
||||||
|
|
47
app/boards/shields/leeloo/boards/nice_nano_v2.overlay
Normal file
47
app/boards/shields/leeloo/boards/nice_nano_v2.overlay
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
#include <dt-bindings/led/led.h>
|
||||||
|
|
||||||
|
&pinctrl {
|
||||||
|
spi3_default: spi3_default {
|
||||||
|
group1 {
|
||||||
|
psels = <NRF_PSEL(SPIM_MOSI, 0, 6)>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
spi3_sleep: spi3_sleep {
|
||||||
|
group1 {
|
||||||
|
psels = <NRF_PSEL(SPIM_MOSI, 0, 6)>;
|
||||||
|
low-power-enable;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&spi3 {
|
||||||
|
compatible = "nordic,nrf-spim";
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
pinctrl-0 = <&spi3_default>;
|
||||||
|
pinctrl-1 = <&spi3_sleep>;
|
||||||
|
pinctrl-names = "default", "sleep";
|
||||||
|
|
||||||
|
led_strip: ws2812@0 {
|
||||||
|
compatible = "worldsemi,ws2812-spi";
|
||||||
|
label = "WS2812";
|
||||||
|
|
||||||
|
/* SPI */
|
||||||
|
reg = <0>; /* ignored, but necessary for SPI bindings */
|
||||||
|
spi-max-frequency = <4000000>;
|
||||||
|
|
||||||
|
/* WS2812 */
|
||||||
|
chain-length = <37>; /* arbitrary; change at will */
|
||||||
|
spi-one-frame = <0x70>;
|
||||||
|
spi-zero-frame = <0x40>;
|
||||||
|
|
||||||
|
color-mapping = <LED_COLOR_ID_GREEN LED_COLOR_ID_RED LED_COLOR_ID_BLUE>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
/ {
|
||||||
|
chosen {
|
||||||
|
zmk,underglow = &led_strip;
|
||||||
|
};
|
||||||
|
};
|
|
@ -1,9 +1,16 @@
|
||||||
# Copyright (c) 2022 The ZMK Contributors
|
# Copyright (c) 2022 The ZMK Contributors
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
# Uncomment the following line to enable the OLED Display
|
# Uncomment the following line to enable the OLED Display or nice!view Display
|
||||||
# CONFIG_ZMK_DISPLAY=y
|
# CONFIG_ZMK_DISPLAY=y
|
||||||
|
|
||||||
|
# Uncomment to turn off WPM Status.
|
||||||
|
# CONFIG_ZMK_WIDGET_WPM_STATUS=n
|
||||||
|
|
||||||
|
# Uncomment to invert colour, if using nice!view Displays
|
||||||
|
# CONFIG_LVGL_USE_THEME_MONO=y
|
||||||
|
|
||||||
|
|
||||||
# Uncomment these two lines to add support for encoders
|
# Uncomment these two lines to add support for encoders
|
||||||
# CONFIG_EC11=y
|
# CONFIG_EC11=y
|
||||||
# CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y
|
# CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y
|
|
@ -1,87 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2022 The ZMK Contributors
|
* Copyright (c) 2022 The ZMK Contributors
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
*/
|
*/
|
||||||
#include <dt-bindings/zmk/matrix_transform.h>
|
|
||||||
|
#include "leeloo_common.dtsi"
|
||||||
/ {
|
|
||||||
chosen {
|
|
||||||
zephyr,display = &oled;
|
|
||||||
zmk,kscan = &kscan0;
|
|
||||||
zmk,matrix_transform = &default_transform;
|
|
||||||
};
|
|
||||||
|
|
||||||
default_transform: keymap_transform_0 {
|
|
||||||
compatible = "zmk,matrix-transform";
|
|
||||||
columns = <12>;
|
|
||||||
rows = <5>;
|
|
||||||
// | SW1 | SW2 | SW3 | SW4 | SW5 | SW6 | | SW6 | SW5 | SW4 | SW3 | SW2 | SW1 |
|
|
||||||
// | SW7 | SW8 | SW9 | SW10 | SW11 | SW12 | | SW12 | SW11 | SW10 | SW9 | SW8 | SW7 |
|
|
||||||
// | SW13 | SW14 | SW15 | SW16 | SW17 | SW18 | | SW18 | SW17 | SW16 | SW15 | SW14 | SW13 |
|
|
||||||
// | SW19 | SW20 | SW21 | SW22 | SW23 | SW24 | SW29 | | SW29 | SW24 | SW23 | SW22 | SW21 | SW20 | SW19 |
|
|
||||||
// | SW25 | SW26 | SW27 | SW28 | | SW28 | SW27 | SW26 | SW25 |
|
|
||||||
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(3,6) RC(3,7) RC(3,8) RC(3,9) RC(3,10) RC(3,11)
|
|
||||||
RC(4,1) RC(4,2) RC(4,3) RC(4,4) RC(4,5) RC(4,6) RC(4,7) RC(4,8) RC(4,9) RC(4,10)
|
|
||||||
>;
|
|
||||||
};
|
|
||||||
|
|
||||||
kscan0: kscan {
|
|
||||||
compatible = "zmk,kscan-gpio-matrix";
|
|
||||||
label = "KSCAN";
|
|
||||||
|
|
||||||
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";
|
|
||||||
label = "LEFT_ENCODER";
|
|
||||||
a-gpios = <&pro_micro 21 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
|
||||||
b-gpios = <&pro_micro 20 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
|
||||||
resolution = <4>;
|
|
||||||
};
|
|
||||||
|
|
||||||
right_encoder: encoder_right {
|
|
||||||
compatible = "alps,ec11";
|
|
||||||
label = "RIGHT_ENCODER";
|
|
||||||
a-gpios = <&pro_micro 20 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
|
||||||
b-gpios = <&pro_micro 21 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
|
||||||
resolution = <4>;
|
|
||||||
};
|
|
||||||
|
|
||||||
sensors {
|
|
||||||
compatible = "zmk,keymap-sensors";
|
|
||||||
sensors = <&left_encoder &right_encoder>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
&pro_micro_i2c {
|
|
||||||
status = "okay";
|
|
||||||
|
|
||||||
oled: ssd1306@3c {
|
|
||||||
compatible = "solomon,ssd1306fb";
|
|
||||||
reg = <0x3c>;
|
|
||||||
label = "DISPLAY";
|
|
||||||
width = <128>;
|
|
||||||
height = <32>;
|
|
||||||
segment-offset = <0>;
|
|
||||||
page-offset = <0>;
|
|
||||||
display-offset = <0>;
|
|
||||||
multiplex-ratio = <31>;
|
|
||||||
segment-remap;
|
|
||||||
com-invdir;
|
|
||||||
com-sequential;
|
|
||||||
prechargep = <0x22>;
|
|
||||||
};
|
|
||||||
};
|
|
|
@ -1,8 +1,8 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2022 The ZMK Contributors
|
* Copyright (c) 2022 The ZMK Contributors
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <behaviors.dtsi>
|
#include <behaviors.dtsi>
|
||||||
#include <dt-bindings/zmk/outputs.h>
|
#include <dt-bindings/zmk/outputs.h>
|
||||||
#include <dt-bindings/zmk/keys.h>
|
#include <dt-bindings/zmk/keys.h>
|
||||||
|
@ -13,46 +13,64 @@
|
||||||
#define LOWER 1 // lower_layer
|
#define LOWER 1 // lower_layer
|
||||||
#define RAISE 2 // raise_layer
|
#define RAISE 2 // raise_layer
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Assign the cs-gpios pin to 4.
|
||||||
|
* Uncomment these next few lines if implementing nice!view Displays
|
||||||
|
* A wire from the nice!view CS display needs to be connected to the
|
||||||
|
* High Frequency P0.22, also known as D4 if you choose to refer to
|
||||||
|
* the pins with Arduino Labels.
|
||||||
|
*/
|
||||||
|
//nice_view_spi: &spi0 {
|
||||||
|
// compatible = "nordic,nrf-spim";
|
||||||
|
// pinctrl-0 = <&spi0_default>;
|
||||||
|
// pinctrl-1 = <&spi0_sleep>;
|
||||||
|
// pinctrl-names = "default", "sleep";
|
||||||
|
// cs-gpios = <&pro_micro 4 GPIO_ACTIVE_HIGH>;
|
||||||
|
//};
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
|
|
||||||
keymap {
|
keymap {
|
||||||
compatible = "zmk,keymap";
|
compatible = "zmk,keymap";
|
||||||
|
|
||||||
default_layer {
|
default_layer {
|
||||||
|
label = " QWERTY";
|
||||||
bindings = <
|
bindings = <
|
||||||
&kp ESC &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp BSLH
|
&kp ESC &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp BSLH
|
||||||
&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp GRAV
|
&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp GRAV
|
||||||
&kp CAPS &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT
|
&kp CAPS &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT
|
||||||
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT
|
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp LGUI &kp LGUI &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT
|
||||||
&kp LALT &kp LCTRL < 1 RET < 2 MINUS &kp LGUI &kp LGUI < 2 EQUAL < 1 SPACE &kp BSPC &kp DEL
|
&kp LALT &kp LCTRL < 1 RET < 2 MINUS < 2 EQUAL < 1 SPACE &kp BSPC &kp DEL
|
||||||
>;
|
>;
|
||||||
|
|
||||||
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>;
|
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>;
|
||||||
};
|
};
|
||||||
|
|
||||||
lower_layer {
|
lower_layer {
|
||||||
|
label = " Lower";
|
||||||
bindings = <
|
bindings = <
|
||||||
&trans &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11
|
&trans &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11
|
||||||
&trans &trans &trans &trans &trans &trans &kp PG_UP &kp HOME &kp UP &kp END &trans &kp F12
|
&trans &trans &trans &trans &trans &trans &kp PG_UP &kp HOME &kp UP &kp END &trans &kp F12
|
||||||
&trans &trans &trans &trans &trans &trans &kp PG_DN &kp LEFT &kp DOWN &kp RIGHT &trans &trans
|
&trans &trans &trans &trans &trans &trans &kp PG_DN &kp LEFT &kp DOWN &kp RIGHT &trans &trans
|
||||||
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
||||||
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
&trans &trans &trans &trans &trans &trans &trans &trans
|
||||||
>;
|
>;
|
||||||
|
|
||||||
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>;
|
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>;
|
||||||
};
|
};
|
||||||
|
|
||||||
raise_layer {
|
raise_layer {
|
||||||
|
label = " Raise";
|
||||||
bindings = <
|
bindings = <
|
||||||
&trans &trans &trans &trans &trans &trans &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &trans
|
&trans &trans &trans &trans &trans &trans &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &trans
|
||||||
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &sys_reset &bootloader
|
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &sys_reset &bootloader
|
||||||
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
||||||
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
||||||
&trans &trans &trans &trans &trans &trans &trans &trans &bt BT_CLR &trans
|
&trans &trans &trans &trans &trans &trans &bt BT_CLR &trans
|
||||||
>;
|
>;
|
||||||
|
|
||||||
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>;
|
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>;
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
91
app/boards/shields/leeloo/leeloo_common.dtsi
Normal file
91
app/boards/shields/leeloo/leeloo_common.dtsi
Normal file
|
@ -0,0 +1,91 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2022 The ZMK Contributors
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <dt-bindings/zmk/matrix_transform.h>
|
||||||
|
|
||||||
|
/ {
|
||||||
|
chosen {
|
||||||
|
zephyr,display = &oled;
|
||||||
|
zmk,kscan = &kscan0;
|
||||||
|
zmk,matrix_transform = &default_transform;
|
||||||
|
};
|
||||||
|
|
||||||
|
default_transform: keymap_transform_0 {
|
||||||
|
compatible = "zmk,matrix-transform";
|
||||||
|
columns = <12>;
|
||||||
|
rows = <5>;
|
||||||
|
// | SW1 | SW2 | SW3 | SW4 | SW5 | SW6 | | SW6 | SW5 | SW4 | SW3 | SW2 | SW1 |
|
||||||
|
// | SW7 | SW8 | SW9 | SW10 | SW11 | SW12 | | SW12 | SW11 | SW10 | SW9 | SW8 | SW7 |
|
||||||
|
// | SW13 | SW14 | SW15 | SW16 | SW17 | SW18 | | SW18 | SW17 | SW16 | SW15 | SW14 | SW13 |
|
||||||
|
// | SW19 | SW20 | SW21 | SW22 | SW23 | SW24 | SW29 | | SW29 | SW24 | SW23 | SW22 | SW21 | SW20 | SW19 |
|
||||||
|
// | SW25 | SW26 | SW27 | SW28 | | SW28 | SW27 | SW26 | SW25 |
|
||||||
|
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,1) RC(4,2) RC(4,3) RC(4,4) RC(4,7) RC(4,8) RC(4,9) RC(4,10)
|
||||||
|
>;
|
||||||
|
};
|
||||||
|
|
||||||
|
kscan0: kscan {
|
||||||
|
compatible = "zmk,kscan-gpio-matrix";
|
||||||
|
label = "KSCAN";
|
||||||
|
|
||||||
|
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: left_encoder {
|
||||||
|
compatible = "alps,ec11";
|
||||||
|
label = "LEFT_ENCODER";
|
||||||
|
a-gpios = <&pro_micro 21 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
||||||
|
b-gpios = <&pro_micro 20 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
||||||
|
resolution = <2>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
|
right_encoder: right_encoder {
|
||||||
|
compatible = "alps,ec11";
|
||||||
|
label = "RIGHT_ENCODER";
|
||||||
|
a-gpios = <&pro_micro 20 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
||||||
|
b-gpios = <&pro_micro 21 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
||||||
|
resolution = <2>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
|
sensors {
|
||||||
|
compatible = "zmk,keymap-sensors";
|
||||||
|
sensors = <&left_encoder &right_encoder>;
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
&pro_micro_i2c {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
oled: ssd1306@3c {
|
||||||
|
compatible = "solomon,ssd1306fb";
|
||||||
|
reg = <0x3c>;
|
||||||
|
label = "DISPLAY";
|
||||||
|
width = <128>;
|
||||||
|
height = <32>;
|
||||||
|
segment-offset = <0>;
|
||||||
|
page-offset = <0>;
|
||||||
|
display-offset = <0>;
|
||||||
|
multiplex-ratio = <31>;
|
||||||
|
segment-remap;
|
||||||
|
com-invdir;
|
||||||
|
com-sequential;
|
||||||
|
prechargep = <0x22>;
|
||||||
|
};
|
||||||
|
};
|
|
@ -1,8 +1,8 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2022 The ZMK Contributors
|
* Copyright (c) 2022 The ZMK Contributors
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "leeloo.dtsi"
|
#include "leeloo.dtsi"
|
||||||
|
|
||||||
&kscan0 {
|
&kscan0 {
|
||||||
|
@ -18,4 +18,4 @@
|
||||||
|
|
||||||
&left_encoder {
|
&left_encoder {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
43
app/boards/shields/leeloo/leeloo_rev2.conf
Normal file
43
app/boards/shields/leeloo/leeloo_rev2.conf
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
# Copyright (c) 2022 The ZMK Contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
# Uncomment the following line to enable the OLED Display or nice!view Display
|
||||||
|
# CONFIG_ZMK_DISPLAY=y
|
||||||
|
|
||||||
|
# Uncomment to turn off WPM Status.
|
||||||
|
# CONFIG_ZMK_WIDGET_WPM_STATUS=n
|
||||||
|
|
||||||
|
# Uncomment to invert colour, if using nice!view Displays
|
||||||
|
# CONFIG_LVGL_USE_THEME_MONO=y
|
||||||
|
|
||||||
|
|
||||||
|
# Uncomment the following line to enable per-key lighting
|
||||||
|
# CONFIG_ZMK_RGB_UNDERGLOW=y
|
||||||
|
|
||||||
|
# Use the STRIP config specific to the LEDs you're using
|
||||||
|
# CONFIG_WS2812_STRIP=y
|
||||||
|
|
||||||
|
# Keep OLED or nice!view Displays on even when toggling off LEDs
|
||||||
|
# Change to y if you wish to toggle Displays on and off with LEDs
|
||||||
|
# CONFIG_ZMK_RGB_UNDERGLOW_EXT_POWER=n
|
||||||
|
|
||||||
|
# Turn off LEDs when idle.
|
||||||
|
# Change to n if you wish to keep LEDs on even when idle.
|
||||||
|
# CONFIG_ZMK_RGB_UNDERGLOW_AUTO_OFF_IDLE=y
|
||||||
|
|
||||||
|
# When USB is disconnected, turn off LEDs
|
||||||
|
# Change to n if you wish to keep LEDs on even when USB is unpluged.
|
||||||
|
# CONFIG_ZMK_RGB_UNDERGLOW_AUTO_OFF_USB=y
|
||||||
|
|
||||||
|
# Start LEDs off at 75%
|
||||||
|
# CONFIG_ZMK_RGB_UNDERGLOW_BRT_START=75
|
||||||
|
|
||||||
|
|
||||||
|
# Uncomment these two lines to add support for encoders
|
||||||
|
# CONFIG_EC11=y
|
||||||
|
# CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y
|
||||||
|
|
||||||
|
|
||||||
|
# Uncomment if you are experiencing connectivity issues; this
|
||||||
|
# configuration item boosts the BLE transmit power.
|
||||||
|
# CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
|
6
app/boards/shields/leeloo/leeloo_rev2.dtsi
Normal file
6
app/boards/shields/leeloo/leeloo_rev2.dtsi
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2022 The ZMK Contributors
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "leeloo_common.dtsi"
|
88
app/boards/shields/leeloo/leeloo_rev2.keymap
Normal file
88
app/boards/shields/leeloo/leeloo_rev2.keymap
Normal file
|
@ -0,0 +1,88 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2022 The ZMK Contributors
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <behaviors.dtsi>
|
||||||
|
#include <dt-bindings/zmk/outputs.h>
|
||||||
|
#include <dt-bindings/zmk/keys.h>
|
||||||
|
#include <dt-bindings/zmk/bt.h>
|
||||||
|
#include <dt-bindings/zmk/rgb.h>
|
||||||
|
|
||||||
|
// Layers
|
||||||
|
#define DEFAULT 0 // default_layer
|
||||||
|
#define LOWER 1 // lower_layer
|
||||||
|
#define RAISE 2 // raise_layer
|
||||||
|
|
||||||
|
// Short versions
|
||||||
|
#define RGBON &rgb_ug RGB_ON
|
||||||
|
#define RGBOFF &rgb_ug RGB_OFF
|
||||||
|
#define RGBTOG &rgb_ug RGB_TOG
|
||||||
|
#define RGBHUI &rgb_ug RGB_HUI
|
||||||
|
#define RGBHUD &rgb_ug RGB_HUD
|
||||||
|
#define RGBSAI &rgb_ug RGB_SAI
|
||||||
|
#define RGBSAD &rgb_ug RGB_SAD
|
||||||
|
#define RGBBRI &rgb_ug RGB_BRI
|
||||||
|
#define RGBBRD &rgb_ug RGB_BRD
|
||||||
|
#define RGBEFF &rgb_ug RGB_EFF
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Assign the cs-gpios pin to 4.
|
||||||
|
* Uncomment these next few lines if implementing nice!view Displays
|
||||||
|
*/
|
||||||
|
//nice_view_spi: &spi0 {
|
||||||
|
// compatible = "nordic,nrf-spim";
|
||||||
|
// pinctrl-0 = <&spi0_default>;
|
||||||
|
// pinctrl-1 = <&spi0_sleep>;
|
||||||
|
// pinctrl-names = "default", "sleep";
|
||||||
|
// cs-gpios = <&pro_micro 4 GPIO_ACTIVE_HIGH>;
|
||||||
|
//};
|
||||||
|
|
||||||
|
|
||||||
|
/ {
|
||||||
|
|
||||||
|
keymap {
|
||||||
|
compatible = "zmk,keymap";
|
||||||
|
|
||||||
|
default_layer {
|
||||||
|
label = " QWERTY";
|
||||||
|
bindings = <
|
||||||
|
&kp ESC &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp BSLH
|
||||||
|
&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp GRAV
|
||||||
|
&kp CAPS &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT
|
||||||
|
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp LGUI &kp RGUI &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT
|
||||||
|
&kp LALT &kp LCTRL < 1 RET < 2 MINUS < 2 EQUAL < 1 SPACE &kp BSPC &kp DEL
|
||||||
|
>;
|
||||||
|
|
||||||
|
// sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>;
|
||||||
|
};
|
||||||
|
|
||||||
|
lower_layer {
|
||||||
|
label = " Lower";
|
||||||
|
bindings = <
|
||||||
|
&trans &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11
|
||||||
|
&trans &trans &trans &trans &trans &trans &kp PG_UP &kp HOME &kp UP &kp END &trans &kp F12
|
||||||
|
&trans &trans &trans &trans &trans &trans &kp PG_DN &kp LEFT &kp DOWN &kp RIGHT &trans &trans
|
||||||
|
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
||||||
|
&trans &trans &trans &trans &trans &trans &trans &trans
|
||||||
|
>;
|
||||||
|
|
||||||
|
// sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>;
|
||||||
|
};
|
||||||
|
|
||||||
|
raise_layer {
|
||||||
|
label = " Raise";
|
||||||
|
bindings = <
|
||||||
|
&trans &trans &trans &trans &trans &trans &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &trans
|
||||||
|
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &sys_reset &bootloader
|
||||||
|
RGBON RGBTOG RGBHUI RGBSAI RGBBRI &trans &trans &trans &trans &trans &trans &trans
|
||||||
|
RGBOFF RGBEFF RGBHUD RGBSAD RGBBRD &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
||||||
|
&trans &trans &trans &trans &trans &trans &bt BT_CLR &trans
|
||||||
|
>;
|
||||||
|
|
||||||
|
// sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>;
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
};
|
15
app/boards/shields/leeloo/leeloo_rev2.zmk.yml
Normal file
15
app/boards/shields/leeloo/leeloo_rev2.zmk.yml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
file_format: "1"
|
||||||
|
id: leeloo_rev2
|
||||||
|
name: Leeloo v2
|
||||||
|
type: shield
|
||||||
|
url: https://clicketysplit.ca/pages/leeloo
|
||||||
|
requires: [pro_micro]
|
||||||
|
exposes: [i2c_oled]
|
||||||
|
features:
|
||||||
|
- keys
|
||||||
|
- display
|
||||||
|
- encoder
|
||||||
|
- underglow
|
||||||
|
siblings:
|
||||||
|
- leeloo_rev2_left
|
||||||
|
- leeloo_rev2_right
|
21
app/boards/shields/leeloo/leeloo_rev2_left.overlay
Normal file
21
app/boards/shields/leeloo/leeloo_rev2_left.overlay
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2022 The ZMK Contributors
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "leeloo_rev2.dtsi"
|
||||||
|
|
||||||
|
&kscan0 {
|
||||||
|
col-gpios
|
||||||
|
= <&pro_micro 19 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro 18 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro 15 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro 14 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro 16 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro 10 GPIO_ACTIVE_HIGH>
|
||||||
|
;
|
||||||
|
};
|
||||||
|
|
||||||
|
&left_encoder {
|
||||||
|
status = "okay";
|
||||||
|
};
|
25
app/boards/shields/leeloo/leeloo_rev2_right.overlay
Normal file
25
app/boards/shields/leeloo/leeloo_rev2_right.overlay
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2022 The ZMK Contributors
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "leeloo_rev2.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";
|
||||||
|
};
|
|
@ -1,8 +1,8 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2022 The ZMK Contributors
|
* Copyright (c) 2022 The ZMK Contributors
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "leeloo.dtsi"
|
#include "leeloo.dtsi"
|
||||||
|
|
||||||
&default_transform {
|
&default_transform {
|
||||||
|
@ -22,4 +22,4 @@
|
||||||
|
|
||||||
&right_encoder {
|
&right_encoder {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
Loading…
Add table
Reference in a new issue