Skip to content

Commit

Permalink
Fix configs
Browse files Browse the repository at this point in the history
  • Loading branch information
qysp committed Jul 14, 2024
1 parent b83f54c commit 86883b7
Show file tree
Hide file tree
Showing 9 changed files with 81 additions and 21 deletions.
13 changes: 0 additions & 13 deletions boards/shields/corne/corne.conf
Original file line number Diff line number Diff line change
@@ -1,13 +0,0 @@
# Uncomment the following line to increase the keyboard's wireless range
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
CONFIG_ZMK_BLE_EXPERIMENTAL_CONN=y

CONFIG_ZMK_SPLIT_BLE_CENTRAL_BATTERY_LEVEL_FETCHING=y
CONFIG_ZMK_SPLIT_BLE_CENTRAL_BATTERY_LEVEL_PROXY=y

# Uncomment the following line to enable deep sleep
CONFIG_ZMK_SLEEP=y

# Enable eager debouncing
CONFIG_ZMK_KSCAN_DEBOUNCE_PRESS_MS=1
CONFIG_ZMK_KSCAN_DEBOUNCE_RELEASE_MS=7
File renamed without changes.
File renamed without changes.
Empty file.
27 changes: 27 additions & 0 deletions boards/shields/corne/corne_peripheral_left.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* Copyright (c) 2020 Pete Johanson
*
* SPDX-License-Identifier: MIT
*/

#include "corne.dtsi"

&kscan0 {
compatible = "zmk,kscan-gpio-matrix";

col-gpios
= <&pro_micro 21 GPIO_ACTIVE_HIGH>
, <&pro_micro 20 GPIO_ACTIVE_HIGH>
, <&pro_micro 19 GPIO_ACTIVE_HIGH>
, <&pro_micro 18 GPIO_ACTIVE_HIGH>
, <&pro_micro 15 GPIO_ACTIVE_HIGH>
, <&pro_micro 14 GPIO_ACTIVE_HIGH>
;

row-gpios
= <&pro_micro 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&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)>
;
};
Empty file.
35 changes: 35 additions & 0 deletions boards/shields/corne/corne_peripheral_right.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* Copyright (c) 2020 Pete Johanson
*
* SPDX-License-Identifier: MIT
*/

#include "corne.dtsi"

&default_transform {
col-offset = <6>;
};

&five_column_transform {
col-offset = <6>;
};

&kscan0 {
compatible = "zmk,kscan-gpio-matrix";

col-gpios
= <&pro_micro 14 GPIO_ACTIVE_HIGH>
, <&pro_micro 15 GPIO_ACTIVE_HIGH>
, <&pro_micro 18 GPIO_ACTIVE_HIGH>
, <&pro_micro 19 GPIO_ACTIVE_HIGH>
, <&pro_micro 20 GPIO_ACTIVE_HIGH>
, <&pro_micro 21 GPIO_ACTIVE_HIGH>
;

row-gpios
= <&pro_micro 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&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)>
;
};
10 changes: 7 additions & 3 deletions build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@
---
include:
- board: seeeduino_xiao_ble
shield: corne_dongle
shield: corne_central_dongle
- board: nice_nano_v2
shield: corne_left nice_view_adapter nice_view
shield: corne_peripheral_left nice_view_adapter nice_view
- board: nice_nano_v2
shield: corne_right nice_view_adapter nice_view
shield: corne_peripheral_right nice_view_adapter nice_view
- board: nice_nano_v2
shield: settings_reset
- board: seeeduino_xiao_ble
shield: settings_reset
17 changes: 12 additions & 5 deletions config/corne.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Uncomment the following lines to enable the Corne RGB Underglow
# CONFIG_ZMK_RGB_UNDERGLOW=y
# CONFIG_WS2812_STRIP=y
# Increase the keyboard's wireless range
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
CONFIG_ZMK_BLE_EXPERIMENTAL_CONN=y

# Uncomment the following line to enable the Corne OLED Display
# CONFIG_ZMK_DISPLAY=y
CONFIG_ZMK_SPLIT_BLE_CENTRAL_BATTERY_LEVEL_FETCHING=y
CONFIG_ZMK_SPLIT_BLE_CENTRAL_BATTERY_LEVEL_PROXY=y

# Enable deep sleep
CONFIG_ZMK_SLEEP=y

# Enable eager debouncing
CONFIG_ZMK_KSCAN_DEBOUNCE_PRESS_MS=1
CONFIG_ZMK_KSCAN_DEBOUNCE_RELEASE_MS=7

0 comments on commit 86883b7

Please sign in to comment.