Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update with upstream changes #29

Merged
merged 67 commits into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
aaf9958
feat(boards): Leeloo v2 and V2 Zephyr 3.2 fixes
ClicketySplit Jul 17, 2023
f3110d1
fix(docs): Fix README punctuation and add license link
trueNAHO Jul 17, 2023
18a2b76
feat(nice!view): Custom widgets
Nicell Jul 18, 2023
51a4be8
fix(displays): Don't enable built-in widget configs by default
Nicell Jul 18, 2023
ee1e135
fix: Proper battery sensor Kconfig dependencies.
caksoylar Jul 19, 2023
cec2061
fix(docs): Fix typos in parameterized macros docs.
narfdotpl Jul 19, 2023
b945ffe
chore(deps): bump semver from 5.7.1 to 5.7.2 in /docs
dependabot[bot] Jul 12, 2023
73e1b52
fix(bluetooth): Properly clear peripheral slots
petejohanson Jul 19, 2023
ed400c4
fix(bluetooth): Corrected use of `bt_addr_le_cmp`
petejohanson Jul 19, 2023
54c2e8e
feat: Add more logging to peripheral settings.
petejohanson Jul 20, 2023
5f6a134
fix(bluetooth): Split improvements
petejohanson Jul 21, 2023
147f7f2
fix(shields): Make settings_reset more flexible.
petejohanson Jul 21, 2023
f743d57
feat(shields): Add splitkb.com Aurora Sofle
petejohanson Jul 11, 2023
9a963ab
refactor: use low priority workqueue for underglow and battery reporting
xudongzheng Jul 17, 2023
cb9c573
refactor(underglow): turn underglow off in low priority work queue
xudongzheng Jul 17, 2023
e65a7e3
fix(battery): change nRF52 ADC gain
xudongzheng Jul 20, 2023
d17c473
feat(docs): Improve parameterized macros docs
minusfive Aug 2, 2023
c957348
fix(docs): detail overriding the `led_strip` `chain-length` property
SethMilliken Aug 8, 2023
9d44229
feature(split): add support for sensors from peripheral
stephen Mar 15, 2021
dcb1f8f
fix(docs): Update docs about split encoder support
petejohanson Jun 23, 2023
a92a496
fix(sensors): Only accept data once per behavior.
petejohanson Jun 28, 2023
185457b
fix(shields): leeloo - proper encoder status for split encoders.
mstralenya Aug 29, 2023
fd47965
fix(docs): Remove diode-direction from direct GPIO driver
caksoylar Sep 2, 2023
1e11e84
fix(docs): Fix row/col comments in matrix examples
caksoylar Sep 2, 2023
3d93803
feat(docs): Note GPIO flags and add examples
caksoylar Sep 2, 2023
369c7c1
fix(docs): Correct default macro wait/tap ms
caksoylar Sep 2, 2023
b20d317
feat(docs): Note devicetree limits re: macro bindings
caksoylar Sep 2, 2023
4e18b87
feat(docs): Document persisted settings and debouncing
caksoylar Sep 2, 2023
544612c
fix(split): reserve peripheral slot before stopping scanning
xudongzheng Sep 2, 2023
ac06914
feat(shields): Add Bluetooth bindings to kyria keymaps
filterpaper Aug 3, 2023
3de2393
chore(deps): bump word-wrap from 1.2.3 to 1.2.4 in /docs
dependabot[bot] Jul 19, 2023
8984e12
chore(deps-dev): bump json-schema-to-typescript in /docs
dependabot[bot] Aug 30, 2023
647945d
feat(shields): Add splitkb.com Aurora Helix
petejohanson Jul 17, 2023
3936298
chore(deps-dev): bump eslint-plugin-react from 7.32.2 to 7.33.2 in /docs
dependabot[bot] Sep 4, 2023
7185005
feat(split): Use directed advertising.
petejohanson Sep 2, 2023
6938756
fix(docs): Fix typo in caps-word.md (#1924)
NateEag Sep 4, 2023
8087fa3
chore(deps): bump @fortawesome/fontawesome-svg-core in /docs
dependabot[bot] Sep 5, 2023
f442776
feat(docs): Detail logging and note extra useful options
caksoylar Jun 11, 2023
7f9e9f8
fix(boards): Disable QSPI for Xiao BLE
caksoylar Sep 6, 2023
eaeea4b
feat(docs): Add missing `&kp` tip for `devicetree_unfixed.h` error
JeppeKlitgaard Sep 12, 2023
690bc1b
refactor: Move drivers into properly module.
petejohanson Sep 3, 2023
c28ef1b
refactor(drivers): Use proper init stage/priority.
petejohanson Sep 3, 2023
0ca7f69
refactor: Promote debounce to exposed mod lib.
petejohanson Sep 12, 2023
28ce23d
chore(tests): Move to proper header name.
petejohanson Sep 15, 2023
8abc449
feat(drivers): add driver for MAX17048 fuel gauge
zhiayang Sep 26, 2023
07c8283
fix(shields): Leeloo-Micro set status disabled for encoders.
ClicketySplit Sep 28, 2023
9b3d2cb
fix(driver): Fix broken compilation for MAX7318 driver
zhiayang Sep 28, 2023
c1ebadc
feat(hid): Add apple globe keycode
ReFil Sep 29, 2023
933e369
feat(core): Adding pre-release for keys that were already pressed.
andrewjrae May 30, 2023
dffdb23
test(core): Adding coverage for key pre-releasing.
andrewjrae Jun 7, 2023
2f05ad5
fix(core): Prevent pre-releasing explicit mods.
andrewjrae Sep 16, 2023
651ed05
refactor: Split endpoint to transport and instance
joelspadin May 14, 2023
b17d896
fix: Address review comments
joelspadin Aug 27, 2023
6a3cc91
fix: Fix nice_view display widgets
joelspadin Aug 27, 2023
aa4cb14
fix(combos)Fix bug with overlapping combos timeouts (#1945)
HelloThisIsFlo Oct 3, 2023
2f6abff
refactor(behaviors): Giving global-quick-tap its own term
andrewjrae Jul 17, 2022
77eb44b
feat(behaviors): Adding global-quick-tap-ms for combos
andrewjrae Jul 19, 2022
1e84e26
feat(docs): Adding global-quick-tap-ms docs
andrewjrae May 28, 2023
49c393e
refactor(docs): Applying suggestions for gqt from @caksoylar
andrewjrae May 29, 2023
b85ffa4
refactor(behaviors): global-quick-tap -> require-prior-idle
andrewjrae Sep 24, 2023
f0f6d61
fix(tests): Updating old tests includes
andrewjrae Sep 24, 2023
2234be0
refactor(docs): Apply suggestions from @caksoylar
andrewjrae Sep 25, 2023
11996ff
refactor(behaviors): Final global-quick-tap deprecation.
andrewjrae Sep 27, 2023
df92b0e
feat(shields): sofle: add underglow support with `&pinctrl` update
SethMilliken Oct 4, 2023
913fdb8
feat(docs): Add configuration snippet for layer-taps
BouleJaune Oct 4, 2023
ca5c9b4
feat(blog): Add SOTF #6 (#1943)
caksoylar Oct 6, 2023
fd05478
feat(shields): Microdox V2 shield definition
alexkang Oct 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
[![Build](https://github.com/zmkfirmware/zmk/workflows/Build/badge.svg)](https://github.com/zmkfirmware/zmk/actions)
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg)](CODE_OF_CONDUCT.md)

[ZMK Firmware](https://zmk.dev/) is an open source (MIT) keyboard firmware built on the [Zephyr™ Project](https://www.zephyrproject.org/) Real Time Operating System (RTOS). ZMK's goal is to provide a modern, wireless, and powerful firmware free of licensing issues.
[ZMK Firmware](https://zmk.dev/) is an open source ([MIT](LICENSE)) keyboard firmware built on the [Zephyr™ Project](https://www.zephyrproject.org/) Real Time Operating System (RTOS). ZMK's goal is to provide a modern, wireless, and powerful firmware free of licensing issues.

Check out the website to learn more: https://zmk.dev/
Check out the website to learn more: https://zmk.dev/.

You can also come join our [ZMK Discord Server](https://zmk.dev/community/discord/invite)
You can also come join our [ZMK Discord Server](https://zmk.dev/community/discord/invite).

To review features, check out the [feature overview](https://zmk.dev/docs/). ZMK is under active development, and new features are listed with the [enhancement label](https://github.com/zmkfirmware/zmk/issues?q=is%3Aissue+is%3Aopen+label%3Aenhancement) in GitHub. Please feel free to add 👍 to the issue description of any requests to upvote the feature.
5 changes: 3 additions & 2 deletions app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ list(APPEND DTS_ROOT ${CMAKE_SOURCE_DIR}/drivers/zephyr)
set(ZephyrBuildConfiguration_ROOT ${CMAKE_SOURCE_DIR}/cmake)

list(APPEND ZEPHYR_EXTRA_MODULES
${CMAKE_CURRENT_SOURCE_DIR}/drivers
${CMAKE_CURRENT_SOURCE_DIR}/module
)

# Find Zephyr. This also loads Zephyr's build system.
Expand Down Expand Up @@ -59,7 +59,7 @@ if ((NOT CONFIG_ZMK_SPLIT) OR CONFIG_ZMK_SPLIT_ROLE_CENTRAL)
target_sources(app PRIVATE src/behavior_queue.c)
target_sources(app PRIVATE src/conditional_layer.c)
target_sources(app PRIVATE src/endpoints.c)
target_sources(app PRIVATE src/events/endpoint_selection_changed.c)
target_sources(app PRIVATE src/events/endpoint_changed.c)
target_sources(app PRIVATE src/hid_listener.c)
target_sources(app PRIVATE src/keymap.c)
target_sources(app PRIVATE src/events/layer_state_changed.c)
Expand Down Expand Up @@ -87,6 +87,7 @@ target_sources_ifdef(CONFIG_USB_DEVICE_STACK app PRIVATE src/usb.c)
target_sources_ifdef(CONFIG_ZMK_USB app PRIVATE src/usb_hid.c)
target_sources_ifdef(CONFIG_ZMK_RGB_UNDERGLOW app PRIVATE src/rgb_underglow.c)
target_sources_ifdef(CONFIG_ZMK_BACKLIGHT app PRIVATE src/backlight.c)
target_sources(app PRIVATE src/workqueue.c)
target_sources(app PRIVATE src/main.c)

add_subdirectory(src/display/)
Expand Down
20 changes: 16 additions & 4 deletions app/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -403,14 +403,18 @@ endif
#Initialization Priorities
endmenu

menu "KSCAN Settings"
menuconfig ZMK_KSCAN
bool "ZMK KScan Integration"
default y
select KSCAN

if ZMK_KSCAN

config ZMK_KSCAN_EVENT_QUEUE_SIZE
int "Size of the event queue for KSCAN events to buffer events"
default 4

#KSCAN Settings
endmenu
endif # ZMK_KSCAN

menu "Logging"

Expand Down Expand Up @@ -500,10 +504,18 @@ config ZMK_SETTINGS_SAVE_DEBOUNCE
endif

config ZMK_BATTERY_REPORT_INTERVAL
depends on ZMK_BLE
depends on ZMK_BATTERY_REPORTING
int "Battery level report interval in seconds"
default 60

config ZMK_LOW_PRIORITY_THREAD_STACK_SIZE
int "Low priority thread stack size"
default 768

config ZMK_LOW_PRIORITY_THREAD_PRIORITY
int "Low priority thread priority"
default 10

#Advanced
endmenu

Expand Down
35 changes: 15 additions & 20 deletions app/boards/arm/corneish_zen/widgets/output_status.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL);
#include <zmk/display.h>
#include "output_status.h"
#include <zmk/event_manager.h>
#include <zmk/events/usb_conn_state_changed.h>
#include <zmk/events/ble_active_profile_changed.h>
#include <zmk/events/endpoint_selection_changed.h>
#include <zmk/events/endpoint_changed.h>
#include <zmk/usb.h>
#include <zmk/ble.h>
#include <zmk/endpoints.h>
Expand All @@ -39,31 +38,29 @@ LV_IMG_DECLARE(USB_connected);
static sys_slist_t widgets = SYS_SLIST_STATIC_INIT(&widgets);

struct output_status_state {
enum zmk_endpoint selected_endpoint;
struct zmk_endpoint_instance selected_endpoint;
bool active_profile_connected;
bool active_profile_bonded;
uint8_t active_profile_index;
};

static struct output_status_state get_state(const zmk_event_t *_eh) {
return (struct output_status_state){.selected_endpoint = zmk_endpoints_selected(),
.active_profile_connected =
zmk_ble_active_profile_is_connected(),
.active_profile_bonded = !zmk_ble_active_profile_is_open(),
.active_profile_index = zmk_ble_active_profile_index()};
;
return (struct output_status_state){
.selected_endpoint = zmk_endpoints_selected(),
.active_profile_connected = zmk_ble_active_profile_is_connected(),
.active_profile_bonded = !zmk_ble_active_profile_is_open(),
};
}

static void set_status_symbol(lv_obj_t *icon, struct output_status_state state) {
switch (state.selected_endpoint) {
case ZMK_ENDPOINT_USB:
switch (state.selected_endpoint.transport) {
case ZMK_TRANSPORT_USB:
lv_img_set_src(icon, &USB_connected);
break;
case ZMK_ENDPOINT_BLE:
case ZMK_TRANSPORT_BLE:
if (state.active_profile_bonded) {
if (state.active_profile_connected) {
// sprintf(text, LV_SYMBOL_BLUETOOTH "%i " LV_SYMBOL_OK, active_profile_index);
switch (state.active_profile_index) {
switch (state.selected_endpoint.ble.profile_index) {
case 0:
lv_img_set_src(icon, &bluetooth_connected_1);
break;
Expand All @@ -84,7 +81,7 @@ static void set_status_symbol(lv_obj_t *icon, struct output_status_state state)
lv_img_set_src(icon, &bluetooth_disconnected_right);
}
} else {
switch (state.active_profile_index) {
switch (state.selected_endpoint.ble.profile_index) {
case 0:
lv_img_set_src(icon, &bluetooth_advertising_1);
break;
Expand Down Expand Up @@ -113,11 +110,9 @@ static void output_status_update_cb(struct output_status_state state) {

ZMK_DISPLAY_WIDGET_LISTENER(widget_output_status, struct output_status_state,
output_status_update_cb, get_state)
ZMK_SUBSCRIPTION(widget_output_status, zmk_endpoint_selection_changed);

#if IS_ENABLED(CONFIG_USB_DEVICE_STACK)
ZMK_SUBSCRIPTION(widget_output_status, zmk_usb_conn_state_changed);
#endif
ZMK_SUBSCRIPTION(widget_output_status, zmk_endpoint_changed);
// We don't get an endpoint changed event when the active profile connects/disconnects
// but there wasn't another endpoint to switch from/to, so update on BLE events too.
#if defined(CONFIG_ZMK_BLE)
ZMK_SUBSCRIPTION(widget_output_status, zmk_ble_active_profile_changed);
#endif
Expand Down
3 changes: 3 additions & 0 deletions app/boards/seeeduino_xiao_ble.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@
};
};

&qspi {
status = "disabled";
};
2 changes: 1 addition & 1 deletion app/boards/shields/cradio/cradio.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
flavor = "tap-preferred";
tapping-term-ms = <220>;
quick-tap-ms = <150>;
global-quick-tap;
require-prior-idle-ms = <100>;
bindings = <&kp>, <&kp>;
};
};
Expand Down
20 changes: 18 additions & 2 deletions app/boards/shields/kyria/kyria.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

#include <behaviors.dtsi>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/keys.h>

/ {
Expand All @@ -15,15 +16,30 @@
// ---------------------------------------------------------------------------------------------------------------------------------
// | ESC | Q | W | E | R | T | | Y | U | I | O | P | \ |
// | TAB | A | S | D | F | G | | H | J | K | L | ; | ' |
// | SHIFT | Z | X | C | V | B | L SHIFT | L SHIFT | | L SHIFT | L SHIFT | N | M | , | . | / | CTRL |
// | SHIFT | Z | X | C | V | B | L SHIFT | L SHIFT | | LAYER 1 | L SHIFT | N | M | , | . | / | CTRL |
// | GUI | DEL | RET | SPACE | ESC | | RET | SPACE | TAB | BSPC | R-ALT |
bindings = <
&kp ESC &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSLH
&kp TAB &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 LSHFT &kp LSHFT &kp LSHFT &kp LSHFT &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RCTRL
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp LSHFT &kp LSHFT &mo 1 &kp LSHFT &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RCTRL
&kp LGUI &kp DEL &kp RET &kp SPACE &kp ESC &kp RET &kp SPACE &kp TAB &kp BSPC &kp RALT
>;

sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN &inc_dec_kp PG_UP PG_DN>;
};
function_layer {
// ---------------------------------------------------------------------------------------------------------------------------------
// | | |BT_CLR|BTSEL0|BTSEL1|BTSEL2| | | | | | | |
// | | | |BTSEL3|BTSEL4| | | | | | | | |
// | | | | | | | | | | | | | | | | | | |
// | | | | | | | | | | | | |
bindings = <
&trans &trans &bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &trans &trans &trans &trans &trans &trans
&trans &trans &trans &bt BT_SEL 3 &bt BT_SEL 4 &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 &inc_dec_kp PG_UP PG_DN>;
};
};
Expand Down
20 changes: 18 additions & 2 deletions app/boards/shields/kyria/kyria_rev2.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

#include <behaviors.dtsi>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/keys.h>

/ {
Expand All @@ -15,15 +16,30 @@
// ---------------------------------------------------------------------------------------------------------------------------------
// | ESC | Q | W | E | R | T | | Y | U | I | O | P | \ |
// | TAB | A | S | D | F | G | | H | J | K | L | ; | ' |
// | SHIFT | Z | X | C | V | B | L SHIFT | L SHIFT | | L SHIFT | L SHIFT | N | M | , | . | / | CTRL |
// | SHIFT | Z | X | C | V | B | L SHIFT | L SHIFT | | LAYER 1 | L SHIFT | N | M | , | . | / | CTRL |
// | GUI | DEL | RET | SPACE | ESC | | RET | SPACE | TAB | BSPC | R-ALT |
bindings = <
&kp ESC &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSLH
&kp TAB &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 LSHFT &kp LSHFT &kp LSHFT &kp LSHFT &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RCTRL
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp LSHFT &kp LSHFT &mo 1 &kp LSHFT &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RCTRL
&kp LGUI &kp DEL &kp RET &kp SPACE &kp ESC &kp RET &kp SPACE &kp TAB &kp BSPC &kp RALT
>;

sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN &inc_dec_kp PG_UP PG_DN>;
};
function_layer {
// ---------------------------------------------------------------------------------------------------------------------------------
// | | |BT_CLR|BTSEL0|BTSEL1|BTSEL2| | | | | | | |
// | | | |BTSEL3|BTSEL4| | | | | | | | |
// | | | | | | | | | | | | | | | | | | |
// | | | | | | | | | | | | |
bindings = <
&trans &trans &bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &trans &trans &trans &trans &trans &trans
&trans &trans &trans &bt BT_SEL 3 &bt BT_SEL 4 &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 &inc_dec_kp PG_UP PG_DN>;
};
};
Expand Down
26 changes: 21 additions & 5 deletions app/boards/shields/kyria/kyria_rev3.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

#include <behaviors.dtsi>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/keys.h>

/* Uncomment this block if using RGB
Expand All @@ -23,13 +24,28 @@
// ---------------------------------------------------------------------------------------------------------------------------------
// | ESC | Q | W | E | R | T | | Y | U | I | O | P | \ |
// | TAB | A | S | D | F | G | | H | J | K | L | ; | ' |
// | SHIFT | Z | X | C | V | B | L SHIFT | L SHIFT | | L SHIFT | L SHIFT | N | M | , | . | / | CTRL |
// | SHIFT | Z | X | C | V | B | L SHIFT | L SHIFT | | LAYER 1 | L SHIFT | N | M | , | . | / | CTRL |
// | GUI | DEL | RET | SPACE | ESC | | RET | SPACE | TAB | BSPC | R-ALT |
bindings = <
&kp ESC &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSLH
&kp TAB &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 LSHFT &kp LSHFT &kp LSHFT &kp LSHFT &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RCTRL
&kp LGUI &kp DEL &kp RET &kp SPACE &kp ESC &kp RET &kp SPACE &kp TAB &kp BSPC &kp RALT
&kp ESC &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSLH
&kp TAB &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 LSHFT &kp LSHFT &mo 1 &kp LSHFT &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RCTRL
&kp LGUI &kp DEL &kp RET &kp SPACE &kp ESC &kp RET &kp SPACE &kp TAB &kp BSPC &kp RALT
>;

sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN &inc_dec_kp PG_UP PG_DN>;
};
function_layer {
// ---------------------------------------------------------------------------------------------------------------------------------
// | | |BT_CLR|BTSEL0|BTSEL1|BTSEL2| | | | | | | |
// | | | |BTSEL3|BTSEL4| | | | | | | | |
// | | | | | | | | | | | | | | | | | | |
// | | | | | | | | | | | | |
bindings = <
&trans &trans &bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &trans &trans &trans &trans &trans &trans
&trans &trans &trans &bt BT_SEL 3 &bt BT_SEL 4 &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 &inc_dec_kp PG_UP PG_DN>;
Expand Down
15 changes: 12 additions & 3 deletions app/boards/shields/leeloo/Kconfig.defconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# Copyright (c) 2022 The ZMK Contributors
# Copyright (c) 2023 The ZMK Contributors
# 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

config ZMK_KEYBOARD_NAME
Expand All @@ -11,7 +21,7 @@ config ZMK_SPLIT_ROLE_CENTRAL

endif

if SHIELD_LEELOO_LEFT || SHIELD_LEELOO_RIGHT
if SHIELD_LEELOO

config ZMK_SPLIT
default y
Expand All @@ -31,7 +41,6 @@ endif # ZMK_DISPLAY

if LVGL


config LV_Z_VDB_SIZE
default 64

Expand Down
15 changes: 14 additions & 1 deletion app/boards/shields/leeloo/Kconfig.shield
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
# Copyright (c) 2022 The ZMK Contributors
# Copyright (c) 2023 The ZMK Contributors
# SPDX-License-Identifier: MIT

config SHIELD_LEELOO
bool

config SHIELD_LEELOO_LEFT
def_bool $(shields_list_contains,leeloo_left)
select SHIELD_LEELOO

config SHIELD_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
Loading
Loading