Nick
4 years ago
355 changed files with 6367 additions and 2716 deletions
@ -0,0 +1,4 @@
@@ -0,0 +1,4 @@
|
||||
BasedOnStyle: LLVM |
||||
IndentWidth: 4 |
||||
ColumnLimit: 100 |
||||
SortIncludes: false |
@ -0,0 +1,25 @@
@@ -0,0 +1,25 @@
|
||||
name: clang-format-lint |
||||
|
||||
on: |
||||
push: |
||||
paths: |
||||
- "app/boards/**/*.c" |
||||
- "app/include/**/*.h" |
||||
- "app/src/**" |
||||
pull_request: |
||||
paths: |
||||
- "app/boards/**/*.c" |
||||
- "app/include/**/*.h" |
||||
- "app/src/**" |
||||
|
||||
jobs: |
||||
build: |
||||
runs-on: ubuntu-latest |
||||
name: clang-format lint |
||||
|
||||
steps: |
||||
- uses: actions/checkout@v2 |
||||
- uses: DoozyX/clang-format-lint-action@v0.9 |
||||
with: |
||||
source: "./app" |
||||
extensions: "h,c" |
@ -0,0 +1,70 @@
@@ -0,0 +1,70 @@
|
||||
on: |
||||
push: |
||||
paths: |
||||
- "app/tests/**" |
||||
- "app/src/**" |
||||
pull_request: |
||||
paths: |
||||
- "app/tests/**" |
||||
- "app/src/**" |
||||
|
||||
name: Test |
||||
|
||||
jobs: |
||||
integration_test: |
||||
runs-on: ubuntu-latest |
||||
name: Integration Tests |
||||
steps: |
||||
# To use this repository's private action, |
||||
# you must check out the repository |
||||
- name: Checkout |
||||
uses: actions/checkout@v2 |
||||
- name: Cache west modules |
||||
timeout-minutes: 2 |
||||
continue-on-error: true |
||||
uses: actions/cache@v2 |
||||
env: |
||||
cache-name: cache-zephyr-modules |
||||
with: |
||||
path: | |
||||
modules/ |
||||
tools/ |
||||
zephyr/ |
||||
bootloader/ |
||||
key: 2-${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('app/west.yml') }} |
||||
restore-keys: | |
||||
2-${{ runner.os }}-build-${{ env.cache-name }}- |
||||
2-${{ runner.os }}-build- |
||||
2-${{ runner.os }}- |
||||
- name: West Init |
||||
uses: "docker://zmkfirmware/zephyr-west-action-arm:latest" |
||||
id: west-init |
||||
with: |
||||
args: 'init "-l app"' |
||||
- name: West Update |
||||
uses: "docker://zmkfirmware/zephyr-west-action-arm:latest" |
||||
id: west-update |
||||
with: |
||||
args: "update" |
||||
- name: West Config Zephyr Base |
||||
uses: "docker://zmkfirmware/zephyr-west-action-arm:latest" |
||||
id: west-config |
||||
with: |
||||
args: 'config "--global zephyr.base-prefer configfile"' |
||||
- name: West Zephyr Export |
||||
uses: "docker://zmkfirmware/zephyr-west-action-arm:latest" |
||||
id: west-zephyr-export |
||||
with: |
||||
args: "zephyr-export" |
||||
- name: Test All |
||||
uses: "docker://zmkfirmware/zephyr-west-action-arm:latest" |
||||
id: west-build |
||||
with: |
||||
entrypoint: /bin/bash |
||||
args: '-c "cd app && ./run-test.sh all"' |
||||
- name: Archive Build |
||||
if: ${{ always() }} |
||||
uses: actions/upload-artifact@v2 |
||||
with: |
||||
name: "log-files" |
||||
path: app/build/**/*.log |
@ -0,0 +1,11 @@
@@ -0,0 +1,11 @@
|
||||
# The ZMK Project consists of many contributors. This file includes individuals |
||||
# who have contributed significant changes to the project. To be added to here, |
||||
# please submit a PR to the project repo. |
||||
Peter Johanson (@petejohanson) |
||||
Innovaker (@innovaker) |
||||
Nick Winans (@Nicell) |
||||
Okke Formsma (@okke-formsma) |
||||
Cody McGinnis (@BrainWart) |
||||
Kurtis Lew (@kurtis-lew) |
||||
Richard Jones (@bmcgavin) |
||||
Kevin Chen (@chenkevinh) |
@ -0,0 +1,7 @@
@@ -0,0 +1,7 @@
|
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
if(CONFIG_PINMUX) |
||||
zephyr_library() |
||||
zephyr_library_sources(pinmux.c) |
||||
zephyr_library_include_directories(${ZEPHYR_BASE}/drivers) |
||||
endif() |
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
# Copyright (c) 2020 The ZMK Contributors |
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
config BOARD_DZ60RGB_REV1 |
||||
bool "DZ60RGB Keyboard" |
||||
depends on SOC_STM32F303XC |
@ -0,0 +1,14 @@
@@ -0,0 +1,14 @@
|
||||
# DZ60RGB keyboard configuration |
||||
|
||||
# Copyright (c) 2020 The ZMK Contributors |
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
if BOARD_DZ60RGB_REV1 |
||||
|
||||
config ZMK_KEYBOARD_NAME |
||||
default "DZ60RGB Rev 1" |
||||
|
||||
config ZMK_USB |
||||
default y |
||||
|
||||
endif # BOARD_DZ60RGB_REV1 |
@ -0,0 +1,7 @@
@@ -0,0 +1,7 @@
|
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
board_runner_args(dfu-util "--pid=0483:df11" "--alt=0" "--dfuse") |
||||
board_runner_args(jlink "--device=STM32F303CC" "--speed=4000") |
||||
|
||||
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake) |
||||
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake) |
@ -0,0 +1,88 @@
@@ -0,0 +1,88 @@
|
||||
/* |
||||
* Copyright (c) 2020 The ZMK Contributors |
||||
* |
||||
* SPDX-License-Identifier: MIT |
||||
*/ |
||||
|
||||
/dts-v1/; |
||||
#include <st/f3/stm32f303Xc.dtsi> |
||||
|
||||
#include <dt-bindings/zmk/matrix-transform.h> |
||||
|
||||
/ { |
||||
model = "DZ60RGB, Rev 1"; |
||||
compatible = "dz60rgb,rev1", "st,stm32f303"; |
||||
|
||||
chosen { |
||||
zephyr,sram = &sram0; |
||||
zephyr,flash = &flash0; |
||||
zmk,kscan = &kscan0; |
||||
zmk,matrix_transform = &default_transform; |
||||
}; |
||||
|
||||
default_transform: keymap_transform_0 { |
||||
compatible = "zmk,matrix-transform"; |
||||
columns = <14>; |
||||
rows = <5>; |
||||
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(0,12) RC(0,13) |
||||
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(1,12) RC(1,13) |
||||
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(2,13) |
||||
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(3,13) |
||||
RC(4,0) RC(4,1) RC(4,2) RC(4,5) RC(4,8) RC(4,9) RC(4,10) RC(4,11) RC(4,13) |
||||
>; |
||||
}; |
||||
|
||||
kscan0: kscan { |
||||
compatible = "zmk,kscan-gpio-matrix"; |
||||
label = "KSCAN"; |
||||
|
||||
diode-direction = "col2row"; |
||||
row-gpios |
||||
= <&gpioa 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&gpiob 10 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&gpiob 11 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&gpiob 14 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&gpiob 12 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
; |
||||
col-gpios |
||||
= <&gpioa 6 GPIO_ACTIVE_HIGH> |
||||
, <&gpioa 7 GPIO_ACTIVE_HIGH> |
||||
, <&gpiob 0 GPIO_ACTIVE_HIGH> |
||||
, <&gpiob 13 GPIO_ACTIVE_HIGH> |
||||
, <&gpiob 15 GPIO_ACTIVE_HIGH> |
||||
, <&gpioa 8 GPIO_ACTIVE_HIGH> |
||||
, <&gpioa 15 GPIO_ACTIVE_HIGH> |
||||
, <&gpiob 3 GPIO_ACTIVE_HIGH> |
||||
, <&gpiob 4 GPIO_ACTIVE_HIGH> |
||||
, <&gpiob 5 GPIO_ACTIVE_HIGH> |
||||
, <&gpiob 8 GPIO_ACTIVE_HIGH> |
||||
, <&gpiob 9 GPIO_ACTIVE_HIGH> |
||||
, <&gpioc 13 GPIO_ACTIVE_HIGH> |
||||
, <&gpioc 14 GPIO_ACTIVE_HIGH> |
||||
; |
||||
}; |
||||
|
||||
}; |
||||
|
||||
&usb { |
||||
status = "okay"; |
||||
}; |
||||
|
||||
&flash0 { |
||||
/* |
||||
* For more information, see: |
||||
* http://docs.zephyrproject.org/latest/guides/dts/index.html#flash-partitions |
||||
*/ |
||||
partitions { |
||||
compatible = "fixed-partitions"; |
||||
#address-cells = <1>; |
||||
#size-cells = <1>; |
||||
|
||||
/* Set 6Kb of storage at the end of the 256Kb of flash */ |
||||
storage_partition: partition@3e800 { |
||||
label = "storage"; |
||||
reg = <0x0003e800 0x00001800>; |
||||
}; |
||||
}; |
||||
}; |
@ -0,0 +1,25 @@
@@ -0,0 +1,25 @@
|
||||
#include <behaviors.dtsi> |
||||
#include <dt-bindings/zmk/keys.h> |
||||
|
||||
/ { |
||||
keymap { |
||||
compatible = "zmk,keymap"; |
||||
|
||||
default_layer { |
||||
// ------------------------------------------------------------------------------------------ |
||||
// | ESC | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | BKSP | |
||||
// | TAB | Q | W | E | R | T | Y | U | I | O | P | [ | ] | "|" | |
||||
// | CAPS | A | S | D | F | G | H | J | K | L | ; | ' | ENTER | |
||||
// | SHIFT | Z | X | C | V | B | N | M | , | . | SHIFT(/) | ^ | DEL | |
||||
// | CTL | WIN | ALT | SPACE | ALT | MO(1) | <- | v | -> | |
||||
// ------------------------------------------------------------------------------------------ |
||||
bindings = < |
||||
&kp ESC &kp NUM_1 &kp NUM_2 &kp NUM_3 &kp NUM_4 &kp NUM_5 &kp NUM_6 &kp NUM_7 &kp NUM_8 &kp NUM_9 &kp NUM_0 &kp MINUS &kp EQL &kp BKSP |
||||
&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp LBKT &kp RBKT &kp BSLH |
||||
&kp CLCK &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SCLN &kp QUOT &kp RET |
||||
&kp LSFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp CMMA &kp DOT &mt MOD_RSFT FSLH &kp UARW &kp DEL |
||||
&kp LCTL &kp LGUI &kp LALT &kp SPC &kp RALT &mo 1 &kp LARW &kp DARW &kp RARW |
||||
>; |
||||
}; |
||||
}; |
||||
}; |
@ -0,0 +1,19 @@
@@ -0,0 +1,19 @@
|
||||
identifier: DZ60RGB_rev1 |
||||
name: DZ60RGBREV1 |
||||
type: keyboard |
||||
arch: arm |
||||
toolchain: |
||||
- zephyr |
||||
- gnuarmemb |
||||
- xtools |
||||
ram: 40 |
||||
supported: |
||||
- gpio |
||||
- i2c |
||||
- counter |
||||
- spi |
||||
- usb_device |
||||
- lsm303dlhc |
||||
- nvs |
||||
- can |
||||
- kscan |
@ -0,0 +1,27 @@
@@ -0,0 +1,27 @@
|
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
CONFIG_SOC_SERIES_STM32F3X=y |
||||
CONFIG_SOC_STM32F303XC=y |
||||
# 72MHz system clock |
||||
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=72000000 |
||||
|
||||
# enable pinmux |
||||
CONFIG_PINMUX=y |
||||
|
||||
# enable GPIO |
||||
CONFIG_GPIO=y |
||||
|
||||
# clock configuration |
||||
CONFIG_CLOCK_CONTROL=y |
||||
|
||||
# Clock configuration for Cube Clock control driver |
||||
CONFIG_CLOCK_STM32_HSE_CLOCK=8000000 |
||||
CONFIG_CLOCK_STM32_SYSCLK_SRC_PLL=y |
||||
# use HSE as PLL input |
||||
CONFIG_CLOCK_STM32_PLL_SRC_HSE=y |
||||
# produce 72MHz clock at PLL output |
||||
CONFIG_CLOCK_STM32_PLL_PREDIV=1 |
||||
CONFIG_CLOCK_STM32_PLL_MULTIPLIER=9 |
||||
CONFIG_CLOCK_STM32_AHB_PRESCALER=1 |
||||
CONFIG_CLOCK_STM32_APB1_PRESCALER=2 |
||||
CONFIG_CLOCK_STM32_APB2_PRESCALER=1 |
@ -0,0 +1,67 @@
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright (c) 2017 I-SENSE group of ICCS |
||||
* |
||||
* SPDX-License-Identifier: MIT |
||||
*/ |
||||
|
||||
#include <kernel.h> |
||||
#include <device.h> |
||||
#include <init.h> |
||||
#include <drivers/pinmux.h> |
||||
#include <sys/sys_io.h> |
||||
|
||||
#include <pinmux/stm32/pinmux_stm32.h> |
||||
|
||||
/* pin assignments for STM32F3DISCOVERY board */ |
||||
static const struct pin_config pinconf[] = { |
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart1), okay) && CONFIG_SERIAL |
||||
{STM32_PIN_PC4, STM32F3_PINMUX_FUNC_PC4_USART1_TX}, |
||||
{STM32_PIN_PC5, STM32F3_PINMUX_FUNC_PC5_USART1_RX}, |
||||
#endif |
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(usart2), okay) && CONFIG_SERIAL |
||||
{STM32_PIN_PA2, STM32F3_PINMUX_FUNC_PA2_USART2_TX}, |
||||
{STM32_PIN_PA3, STM32F3_PINMUX_FUNC_PA3_USART2_RX}, |
||||
#endif |
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c1), okay) && CONFIG_I2C |
||||
{STM32_PIN_PB6, STM32F3_PINMUX_FUNC_PB6_I2C1_SCL}, |
||||
{STM32_PIN_PB7, STM32F3_PINMUX_FUNC_PB7_I2C1_SDA}, |
||||
#endif |
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i2c2), okay) && CONFIG_I2C |
||||
{STM32_PIN_PA9, STM32F3_PINMUX_FUNC_PA9_I2C2_SCL}, |
||||
{STM32_PIN_PA10, STM32F3_PINMUX_FUNC_PA10_I2C2_SDA}, |
||||
#endif |
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi1), okay) && CONFIG_SPI |
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS |
||||
{STM32_PIN_PA4, STM32F3_PINMUX_FUNC_PA4_SPI1_NSS}, |
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */ |
||||
{STM32_PIN_PA5, STM32F3_PINMUX_FUNC_PA5_SPI1_SCK}, |
||||
{STM32_PIN_PA6, STM32F3_PINMUX_FUNC_PA6_SPI1_MISO}, |
||||
{STM32_PIN_PA7, STM32F3_PINMUX_FUNC_PA7_SPI1_MOSI}, |
||||
#endif |
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(spi2), okay) && CONFIG_SPI |
||||
#ifdef CONFIG_SPI_STM32_USE_HW_SS |
||||
{STM32_PIN_PB12, STM32F3_PINMUX_FUNC_PB12_SPI2_NSS}, |
||||
#endif /* CONFIG_SPI_STM32_USE_HW_SS */ |
||||
{STM32_PIN_PB13, STM32F3_PINMUX_FUNC_PB13_SPI2_SCK}, |
||||
{STM32_PIN_PB14, STM32F3_PINMUX_FUNC_PB14_SPI2_MISO}, |
||||
{STM32_PIN_PB15, STM32F3_PINMUX_FUNC_PB15_SPI2_MOSI}, |
||||
#endif |
||||
#ifdef CONFIG_USB_DC_STM32 |
||||
{STM32_PIN_PA11, STM32F3_PINMUX_FUNC_PA11_USB_DM}, |
||||
{STM32_PIN_PA12, STM32F3_PINMUX_FUNC_PA12_USB_DP}, |
||||
#endif /* CONFIG_USB_DC_STM32 */ |
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(can1), okay) && CONFIG_CAN |
||||
{STM32_PIN_PD0, STM32F3_PINMUX_FUNC_PD0_CAN1_RX}, |
||||
{STM32_PIN_PD1, STM32F3_PINMUX_FUNC_PD1_CAN1_TX}, |
||||
#endif |
||||
}; |
||||
|
||||
static int pinmux_stm32_init(struct device *port) { |
||||
ARG_UNUSED(port); |
||||
|
||||
stm32_setup_pins(pinconf, ARRAY_SIZE(pinconf)); |
||||
|
||||
return 0; |
||||
} |
||||
|
||||
SYS_INIT(pinmux_stm32_init, PRE_KERNEL_1, CONFIG_PINMUX_STM32_DEVICE_INITIALIZATION_PRIORITY); |
@ -1,9 +1,8 @@
@@ -1,9 +1,8 @@
|
||||
CONFIG_KSCAN=n |
||||
CONFIG_ZMK_KSCAN_MOCK_DRIVER=y |
||||
CONFIG_ZMK_KSCAN_COMPOSITE_DRIVER=y |
||||
CONFIG_ZMK_KSCAN_GPIO_DRIVER=n |
||||
CONFIG_GPIO=n |
||||
CONFIG_ZMK_BLE=n |
||||
CONFIG_LOG=y |
||||
CONFIG_KSCAN_LOG_LEVEL_DBG=y |
||||
CONFIG_LOG_BACKEND_SHOW_COLOR=n |
||||
CONFIG_ZMK_LOG_LEVEL_DBG=y |
||||
|
@ -1,79 +1,18 @@
@@ -1,79 +1,18 @@
|
||||
#include <dt-bindings/zmk/keys.h> |
||||
#include <behaviors.dtsi> |
||||
#include <zmk/kscan-mock.h> |
||||
#include <dt-bindings/zmk/keys.h> |
||||
#include <dt-bindings/zmk/kscan-mock.h> |
||||
|
||||
/ { |
||||
chosen { |
||||
zmk,kscan = &kscan0; |
||||
zmk,keymap = &keymap0; |
||||
}; |
||||
|
||||
kscan0: kscan_0 { |
||||
compatible = "zmk,kscan-composite"; |
||||
label = "KSCAN_COMP"; |
||||
rows = <2>; |
||||
columns = <4>; |
||||
|
||||
left: left { |
||||
kscan = <&left_hand>; |
||||
}; |
||||
|
||||
right: right { |
||||
kscan = <&right_hand>; |
||||
column-offset = <2>; |
||||
}; |
||||
zmk,kscan = &kscan; |
||||
}; |
||||
|
||||
left_hand: kscan_1 { |
||||
kscan: kscan { |
||||
compatible = "zmk,kscan-mock"; |
||||
label = "KSCAN_LEFT"; |
||||
label = "KSCAN_MOCK"; |
||||
|
||||
rows = <2>; |
||||
columns = <2>; |
||||
events = <ZMK_MOCK_PRESS(0,1,300) ZMK_MOCK_PRESS(0,0,300) ZMK_MOCK_RELEASE(0,0,300) ZMK_MOCK_RELEASE(0,1,300)>; |
||||
// events = <ZMK_MOCK_PRESS(0,0,800) ZMK_MOCK_RELEASE(0,0,800) ZMK_MOCK_PRESS(0,1,800) ZMK_MOCK_RELEASE(0,1,800)>; |
||||
}; |
||||
|
||||
right_hand: kscan_2 { |
||||
compatible = "zmk,kscan-mock"; |
||||
label = "KSCAN_RIGHT"; |
||||
|
||||
rows = <2>; |
||||
columns = <2>; |
||||
events = <ZMK_MOCK_PRESS(1,1,800) ZMK_MOCK_RELEASE(1,1,100) ZMK_MOCK_PRESS(0,1,800) ZMK_MOCK_RELEASE(0,1,100)>; |
||||
}; |
||||
|
||||
keymap0: keymap { |
||||
compatible = "zmk,keymap"; |
||||
label ="Default keymap"; |
||||
layers = <&default &lower &raise>; |
||||
}; |
||||
|
||||
layers { |
||||
compatible = "zmk,layers"; |
||||
|
||||
default: layer_0 { |
||||
label = "DEFAULT"; |
||||
|
||||
bindings = < |
||||
&kp B &mo 1 &kp C &kp E |
||||
&kp D &kp G &kp F &kp Q>; |
||||
}; |
||||
|
||||
lower: layer_1 { |
||||
label = "LOWER"; |
||||
|
||||
bindings = < |
||||
&cp M_NEXT &trans &kp O &kp Q |
||||
&kp L &kp J &kp P &kp K>; |
||||
}; |
||||
|
||||
raise: layer_2 { |
||||
label = "RAISE"; |
||||
|
||||
bindings = < |
||||
&kp W &kp U &kp I &kp N |
||||
&kp X &kp M &kp C &kp B>; |
||||
}; |
||||
exit-after; |
||||
}; |
||||
}; |
||||
|
@ -1,3 +1,2 @@
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZMK_SPLIT=y |
||||
CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL=y |
||||
CONFIG_ZMK_BLE_UNPAIR_COMBO=y |
@ -1,3 +1,2 @@
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZMK_SPLIT=y |
||||
CONFIG_ZMK_SPLIT_BLE_ROLE_PERIPHERAL=y |
||||
CONFIG_ZMK_BLE_UNPAIR_COMBO=y |
@ -0,0 +1,16 @@
@@ -0,0 +1,16 @@
|
||||
# Copyright (c) 2020 Pete Johanson, Kurtis Lew |
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
if SHIELD_IRIS_LEFT |
||||
|
||||
config ZMK_KEYBOARD_NAME |
||||
default "Iris Left" |
||||
|
||||
endif |
||||
|
||||
if SHIELD_IRIS_RIGHT |
||||
|
||||
config ZMK_KEYBOARD_NAME |
||||
default "Iris Right" |
||||
|
||||
endif |
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2020 Pete Johanson, Kurtis Lew |
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
config SHIELD_IRIS_LEFT |
||||
def_bool $(shields_list_contains,iris_left) |
||||
|
||||
config SHIELD_IRIS_RIGHT |
||||
def_bool $(shields_list_contains,iris_right) |
@ -0,0 +1,51 @@
@@ -0,0 +1,51 @@
|
||||
/* |
||||
* Copyright (c) 2020 Pete Johanson, Kurtis Lew |
||||
* |
||||
* SPDX-License-Identifier: MIT |
||||
*/ |
||||
|
||||
#include <dt-bindings/zmk/matrix-transform.h> |
||||
|
||||
/ { |
||||
chosen { |
||||
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 | |
||||
// | SW29 | SW28 | SW27 | SW26 | | SW26 | SW27 | SW28 | SW29 | |
||||
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,2) RC(4,9) RC(3,6) RC(3,7) RC(3,8) RC(3,9) RC(3,10) RC(3,11) |
||||
RC(4,3) RC(4,4) RC(4,5) RC(4,6) RC(4,7) RC(4,8) |
||||
>; |
||||
}; |
||||
|
||||
kscan0: kscan { |
||||
compatible = "zmk,kscan-gpio-matrix"; |
||||
label = "KSCAN"; |
||||
|
||||
diode-direction = "col2row"; |
||||
row-gpios |
||||
= <&pro_micro_d 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&pro_micro_d 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&pro_micro_d 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&pro_micro_d 0 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&pro_micro_d 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
; |
||||
|
||||
}; |
||||
|
||||
bt_unpair_combo: bt_unpair_combo { |
||||
compatible = "zmk,bt-unpair-combo"; |
||||
}; |
||||
}; |
@ -0,0 +1,60 @@
@@ -0,0 +1,60 @@
|
||||
# Copyright (c) 2020 Pete Johanson, Kurtis Lew |
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
#include <behaviors.dtsi> |
||||
#include <dt-bindings/zmk/keys.h> |
||||
#include <dt-bindings/zmk/bt.h> |
||||
|
||||
/ { |
||||
keymap { |
||||
compatible = "zmk,keymap"; |
||||
|
||||
default_layer { |
||||
// ------------------------------------------------------------------------------------------------------------ |
||||
// | ESC | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | ` | |
||||
// | TAB | Q | W | E | R | T | | Y | U | I | O | P | - | |
||||
// | CTRL | A | S | D | F | G | | H | J | K | L | ; | ' | |
||||
// | SHIFT | Z | X | C | V | B | "[" | | "]" | N | M | , | . | / | SHIFT | |
||||
// | GUI | LOWER| SPACE | | ENTER | RAISE| ALT | |
||||
bindings = < |
||||
&kp ESC &kp NUM_1 &kp NUM_2 &kp NUM_3 &kp NUM_4 &kp NUM_5 &kp NUM_6 &kp NUM_7 &kp NUM_8 &kp NUM_9 &kp NUM_0 &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 MINUS |
||||
&kp LCTL &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SCLN &kp QUOT |
||||
&kp LSFT &kp Z &kp X &kp C &kp V &kp B &kp LBKT &kp RBKT &kp N &kp M &kp CMMA &kp DOT &kp FSLH &kp RSFT |
||||
&kp LGUI &mo 1 &kp SPC &kp RET &mo 2 &kp RALT |
||||
>; |
||||
}; |
||||
|
||||
lower_layer { |
||||
// ------------------------------------------------------------------------------------------------------------ |
||||
// | BTCLR | BT1 | BT2 | BT3 | BT4 | BT5 | | | | | | | | |
||||
// | F1 | F2 | F3 | F4 | F5 | F6 | | F7 | F8 | F9 | F10 | F11 | F12 | |
||||
// | ` | ! | @ | # | $ | % | | ^ | & | * | ( | ) | ~ | |
||||
// | | | | | | | | | | | _ | + | { | } | "|" | |
||||
// | | | | | | | | |
||||
bindings = < |
||||
&bt BT_CLR &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 |
||||
&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12 |
||||
&kp GRAV &kp BANG &kp ATSN &kp HASH &kp CURU &kp PRCT &kp CRRT &kp AMPS &kp KMLT &kp LPRN &kp RPRN &kp TILD |
||||
&trans &trans &trans &trans &trans &trans &trans &trans &trans &kp MINUS &kp KPLS &kp LCUR &kp RCUR &kp PIPE |
||||
&trans &trans &trans &trans &trans &trans |
||||
>; |
||||
}; |
||||
|
||||
raise_layer { |
||||
// ------------------------------------------------------------------------------------------------------------ |
||||
// | | | | | | | | | | | | | | |
||||
// | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | | |
||||
// | F1 | F2 | F3 | F4 | F5 | F6 | | | <- | ^ | v | -> | | |
||||
// | F7 | F8 | F9 | F10 | F11 | F12 | | | | + | - | = | [ | ] | \ | |
||||
// | | | | | | | | |
||||
bindings = < |
||||
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans |
||||
&kp GRAV &kp NUM_1 &kp NUM_2 &kp NUM_3 &kp NUM_4 &kp NUM_5 &kp NUM_6 &kp NUM_7 &kp NUM_8 &kp NUM_9 &kp NUM_0 &trans |
||||
&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &trans &kp LARW &kp DARW &kp UARW &kp RARW &trans |
||||
&kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12 &trans &trans &kp KPLS &kp MINUS &kp EQL &kp LBKT &kp RBKT &kp BSLH |
||||
&trans &trans &trans &trans &trans &trans |
||||
>; |
||||
}; |
||||
}; |
||||
}; |
@ -0,0 +1,2 @@
@@ -0,0 +1,2 @@
|
||||
CONFIG_ZMK_SPLIT=y |
||||
CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL=y |
@ -0,0 +1,22 @@
@@ -0,0 +1,22 @@
|
||||
/* |
||||
* Copyright (c) 2020 Pete Johanson, Kurtis Lew |
||||
* |
||||
* SPDX-License-Identifier: MIT |
||||
*/ |
||||
|
||||
#include "iris.dtsi" |
||||
|
||||
&kscan0 { |
||||
col-gpios |
||||
= <&pro_micro_a 1 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_a 0 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_d 15 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_d 14 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_d 16 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_d 10 GPIO_ACTIVE_HIGH> |
||||
; |
||||
}; |
||||
|
||||
&bt_unpair_combo { |
||||
key-positions = <0 42>; |
||||
}; |
@ -0,0 +1,2 @@
@@ -0,0 +1,2 @@
|
||||
CONFIG_ZMK_SPLIT=y |
||||
CONFIG_ZMK_SPLIT_BLE_ROLE_PERIPHERAL=y |
@ -0,0 +1,26 @@
@@ -0,0 +1,26 @@
|
||||
/* |
||||
* Copyright (c) 2020 Pete Johanson, Kurtis Lew |
||||
* |
||||
* SPDX-License-Identifier: MIT |
||||
*/ |
||||
|
||||
#include "iris.dtsi" |
||||
|
||||
&default_transform { |
||||
col-offset = <6>; |
||||
}; |
||||
|
||||
&kscan0 { |
||||
col-gpios |
||||
= <&pro_micro_d 10 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_d 16 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_d 14 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_d 15 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_a 0 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_a 1 GPIO_ACTIVE_HIGH> |
||||
; |
||||
}; |
||||
|
||||
&bt_unpair_combo { |
||||
key-positions = <11 43>; |
||||
}; |
@ -1,3 +1,2 @@
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZMK_SPLIT=y |
||||
CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL=y |
||||
CONFIG_ZMK_BLE_UNPAIR_COMBO=y |
||||
CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL=y |
@ -1,3 +1,2 @@
@@ -1,3 +1,2 @@
|
||||
CONFIG_ZMK_SPLIT=y |
||||
CONFIG_ZMK_SPLIT_BLE_ROLE_PERIPHERAL=y |
||||
CONFIG_ZMK_BLE_UNPAIR_COMBO=y |
@ -1,2 +1,6 @@
@@ -1,2 +1,6 @@
|
||||
# Uncomment to enable encoder |
||||
# CONFIG_EC11=y |
||||
# CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y |
||||
|
||||
# Uncomment the following line to enable the Lily58 OLED Display |
||||
# CONFIG_ZMK_DISPLAY=y |
||||
|
@ -1,3 +1,6 @@
@@ -1,3 +1,6 @@
|
||||
# Uncomment to enable encoder |
||||
# CONFIG_EC11=y |
||||
# CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y |
||||
|
||||
CONFIG_ZMK_SPLIT=y |
||||
CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL=y |
||||
CONFIG_ZMK_BLE_UNPAIR_COMBO=y |
||||
CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL=y |
@ -0,0 +1,9 @@
@@ -0,0 +1,9 @@
|
||||
# Copyright (c) 2020 The ZMK Contributors |
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
if SHIELD_QAZ |
||||
|
||||
config ZMK_KEYBOARD_NAME |
||||
default "QAZ" |
||||
|
||||
endif |
@ -0,0 +1,5 @@
@@ -0,0 +1,5 @@
|
||||
# Copyright (c) 2020 The ZMK Contributors |
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
config SHIELD_QAZ |
||||
def_bool $(shields_list_contains,qaz) |
@ -0,0 +1,58 @@
@@ -0,0 +1,58 @@
|
||||
/* |
||||
* Copyright (c) 2020 The ZMK Contributors |
||||
* |
||||
* SPDX-License-Identifier: MIT |
||||
*/ |
||||
|
||||
#include <behaviors.dtsi> |
||||
#include <dt-bindings/zmk/keys.h> |
||||
#include <dt-bindings/zmk/bt.h> |
||||
|
||||
#define DEFAULT 0 |
||||
#define NUM_SYM 1 |
||||
#define NAV 2 |
||||
|
||||
/ { |
||||
behaviors { |
||||
hm: homerow_mods { |
||||
compatible = "zmk,behavior-hold-tap"; |
||||
label = "homerow mods"; |
||||
#binding-cells = <2>; |
||||
tapping_term_ms = <225>; |
||||
flavor = "tap-preferred"; |
||||
bindings = <&kp>, <&kp>; |
||||
}; |
||||
}; |
||||
}; |
||||
|
||||
/ { |
||||
keymap { |
||||
compatible = "zmk,keymap"; |
||||
|
||||
default_layer { |
||||
bindings = < |
||||
&kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P |
||||
&hm LGUI A &hm LALT S &hm LCTL D &hm LSFT F &kp G &kp H &hm RSFT J &hm RCTL K &hm RALT L &hm RGUI RET |
||||
&kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp CMMA &kp DOT |
||||
&kp LSFT &kp LGUI &kp LALT < NAV RET < NUM_SYM SPC &kp COLN &kp QUOT &kp FSLH |
||||
>; |
||||
}; |
||||
num_sym { |
||||
bindings = < |
||||
&kp NUM_1 &kp NUM_2 &kp NUM_3 &kp NUM_4 &kp NUM_5 &kp NUM_6 &kp NUM_7 &kp NUM_8 &kp NUM_9 &kp NUM_0 |
||||
&trans &trans &trans &trans &trans &trans &trans &trans &kp EQL &kp MINUS |
||||
&kp DEL &none &none &none &none &none &none &none &kp DOT |
||||
&bootloader &reset &none &trans &trans &kp RET &trans &kp FSLH |
||||
>; |
||||
}; |
||||
|
||||
nav { |
||||
bindings = < |
||||
&bt BT_CLR &bt BT_NXT &bt BT_PRV &none &none &none &none &kp UARW &none &kp BKSP |
||||
&trans &trans &trans &trans &none &none &kp LARW &kp DARW &kp RARW &none |
||||
&none &none &none &none &none &none &none &none &none |
||||
&none &none &none &trans &trans &kp RET &trans &kp FSLH |
||||
>; |
||||
}; |
||||
}; |
||||
}; |
@ -0,0 +1,53 @@
@@ -0,0 +1,53 @@
|
||||
/* |
||||
* Copyright (c) 2020 The ZMK Contributors |
||||
* |
||||
* SPDX-License-Identifier: MIT |
||||
*/ |
||||
|
||||
#include <dt-bindings/zmk/matrix-transform.h> |
||||
|
||||
/ { |
||||
chosen { |
||||
zmk,kscan = &kscan0; |
||||
zmk,matrix_transform = &default_transform; |
||||
}; |
||||
|
||||
default_transform: keymap_transform_0 { |
||||
compatible = "zmk,matrix-transform"; |
||||
columns = <7>; |
||||
rows = <6>; |
||||
map = < |
||||
RC(0,0) RC(0,1) RC(0,2) RC(0,3) RC(0,4) RC(0,5) RC(0,6) RC(4,0) RC(4,1) RC(4,2) |
||||
RC(1,0) RC(1,1) RC(1,2) RC(1,3) RC(1,4) RC(1,5) RC(1,6) RC(5,0) RC(5,1) RC(5,2) |
||||
RC(2,0) RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5) RC(2,6) RC(4,3) RC(5,3) |
||||
RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(3,6) RC(4,4) |
||||
>; |
||||
}; |
||||
|
||||
|
||||
kscan0: kscan_0 { |
||||
compatible = "zmk,kscan-gpio-matrix"; |
||||
label = "KSCAN"; |
||||
diode-direction = "col2row"; |
||||
|
||||
col-gpios |
||||
= <&pro_micro_d 8 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_d 1 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_d 0 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_a 2 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_d 9 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_a 1 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_d 6 GPIO_ACTIVE_HIGH> |
||||
; |
||||
|
||||
row-gpios |
||||
= <&pro_micro_a 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&pro_micro_d 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&pro_micro_d 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&pro_micro_d 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&pro_micro_d 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&pro_micro_d 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
; |
||||
}; |
||||
|
||||
}; |
@ -0,0 +1,10 @@
@@ -0,0 +1,10 @@
|
||||
# Copyright (c) 2020 Pete Johanson, Richard Jones |
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
if SHIELD_ROMAC |
||||
|
||||
config ZMK_KEYBOARD_NAME |
||||
default "RoMac" |
||||
|
||||
endif |
||||
|
@ -0,0 +1,5 @@
@@ -0,0 +1,5 @@
|
||||
# Copyright (c) 2020 Pete Johanson, Richard Jones |
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
config SHIELD_ROMAC |
||||
def_bool $(shields_list_contains,romac) |
@ -0,0 +1,47 @@
@@ -0,0 +1,47 @@
|
||||
/* |
||||
* Copyright (c) 2020 Pete Johanson, Richard Jones |
||||
* |
||||
* SPDX-License-Identifier: MIT |
||||
*/ |
||||
|
||||
#include <behaviors.dtsi> |
||||
#include <dt-bindings/zmk/keys.h> |
||||
#include <dt-bindings/zmk/bt.h> |
||||
|
||||
/ { |
||||
keymap { |
||||
compatible = "zmk,keymap"; |
||||
|
||||
default_layer { |
||||
// ------------------- |
||||
// | 7 | 8 | 9 | |
||||
// | 4 | 5 | 6 | |
||||
// | 1 | 2 | 3 | |
||||
// | MO(1) | 0 | . | |
||||
// ---------------------- |
||||
bindings = < |
||||
&kp NUM_7 &kp NUM_8 &kp NUM_9 |
||||
&kp NUM_4 &kp NUM_5 &kp NUM_6 |
||||
&kp NUM_1 &kp NUM_2 &kp NUM_3 |
||||
&mo 1 &kp NUM_0 &kp DOT |
||||
>; |
||||
}; |
||||
|
||||
nav_layer { |
||||
// ----------------------- |
||||
// | BTNXT | HOME | PGUP | |
||||
// | BTPRV | END | PGDN | |
||||
// | BTCLR | _ | _ | |
||||
// | _ | _ | RET | |
||||
// ----------------------- |
||||
bindings = < |
||||
&bt BT_NXT &kp HOME &kp PGUP |
||||
&bt BT_PRV &kp END &kp PGDN |
||||
&bt BT_CLR &trans &trans |
||||
&trans &trans &kp RET |
||||
>; |
||||
}; |
||||
}; |
||||
}; |
||||
|
||||
|
@ -0,0 +1,40 @@
@@ -0,0 +1,40 @@
|
||||
/* |
||||
* Copyright (c) 2020 Pete Johanson, Richard Jones |
||||
* |
||||
* SPDX-License-Identifier: MIT |
||||
*/ |
||||
|
||||
#include <dt-bindings/zmk/matrix-transform.h> |
||||
|
||||
/ { |
||||
chosen { |
||||
zmk,kscan = &kscan0; |
||||
}; |
||||
|
||||
kscan0: kscan { |
||||
compatible = "zmk,kscan-gpio-matrix"; |
||||
label = "KSCAN"; |
||||
|
||||
diode-direction = "col2row"; |
||||
row-gpios |
||||
= <&pro_micro_d 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&pro_micro_d 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&pro_micro_d 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&pro_micro_d 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
; |
||||
|
||||
col-gpios |
||||
= <&pro_micro_a 0 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_d 15 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_d 14 GPIO_ACTIVE_HIGH> |
||||
; |
||||
|
||||
}; |
||||
|
||||
bt_unpair_combo: bt_unpair_combo { |
||||
compatible = "zmk,bt-unpair-combo"; |
||||
key-positions = <0 11>; |
||||
}; |
||||
|
||||
}; |
||||
|
@ -0,0 +1,10 @@
@@ -0,0 +1,10 @@
|
||||
# Copyright (c) 2020 The ZMK Contributors |
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
if SHIELD_SETTINGS_RESET |
||||
|
||||
config ZMK_KEYBOARD_NAME |
||||
default "SETTINGS RESET" |
||||
|
||||
endif |
||||
|
@ -0,0 +1,5 @@
@@ -0,0 +1,5 @@
|
||||
# Copyright (c) 2020 The ZMK Contributors |
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
config SHIELD_SETTINGS_RESET |
||||
def_bool $(shields_list_contains,settings_reset) |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
CONFIG_ZMK_BLE_CLEAR_BONDS_ON_START=y |
@ -0,0 +1,22 @@
@@ -0,0 +1,22 @@
|
||||
/* |
||||
* Copyright (c) 2020 The ZMK Contributors |
||||
* |
||||
* SPDX-License-Identifier: MIT |
||||
*/ |
||||
|
||||
#include <behaviors.dtsi> |
||||
#include <dt-bindings/zmk/keys.h> |
||||
|
||||
/ { |
||||
keymap { |
||||
compatible = "zmk,keymap"; |
||||
|
||||
default_layer { |
||||
bindings = < |
||||
&reset |
||||
>; |
||||
}; |
||||
}; |
||||
}; |
||||
|
||||
|
@ -0,0 +1,24 @@
@@ -0,0 +1,24 @@
|
||||
/* |
||||
* Copyright (c) 2020 The ZMK Contributors |
||||
* |
||||
* SPDX-License-Identifier: MIT |
||||
*/ |
||||
|
||||
#include <dt-bindings/zmk/matrix-transform.h> |
||||
|
||||
/ { |
||||
chosen { |
||||
zmk,kscan = &kscan0; |
||||
}; |
||||
|
||||
kscan0: kscan { |
||||
compatible = "zmk,kscan-gpio-direct"; |
||||
label = "KSCAN"; |
||||
|
||||
input-gpios |
||||
= <&pro_micro_d 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> |
||||
; |
||||
}; |
||||
|
||||
}; |
||||
|
@ -0,0 +1,54 @@
@@ -0,0 +1,54 @@
|
||||
# Copyright (c) 2020 Ryan Cross |
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
if SHIELD_SOFLE_LEFT |
||||
|
||||
config ZMK_KEYBOARD_NAME |
||||
default "Sofle Left" |
||||
endif |
||||
|
||||
if SHIELD_SOFLE_RIGHT |
||||
|
||||
config ZMK_KEYBOARD_NAME |
||||
default "Sofle Right" |
||||
endif |
||||
|
||||
if SHIELD_SOFLE_LEFT || SHIELD_SOFLE_RIGHT |
||||
|
||||
if ZMK_DISPLAY |
||||
|
||||
config I2C |
||||
default y |
||||
|
||||
config SSD1306 |
||||
default y |
||||
|
||||
config SSD1306_REVERSE_MODE |
||||
default y |
||||
|
||||
endif # ZMK_DISPLAY |
||||
|
||||
if LVGL |
||||
|
||||
config LVGL_HOR_RES |
||||
default 128 |
||||
|
||||
config LVGL_VER_RES |
||||
default 32 |
||||
|
||||
config LVGL_VDB_SIZE |
||||
default 64 |
||||
|
||||
config LVGL_DPI |
||||
default 148 |
||||
|
||||
config LVGL_BITS_PER_PIXEL |
||||
default 1 |
||||
|
||||
choice LVGL_COLOR_DEPTH |
||||
default LVGL_COLOR_DEPTH_1 |
||||
endchoice |
||||
|
||||
endif # LVGL |
||||
|
||||
endif |
@ -0,0 +1,8 @@
@@ -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) |
@ -0,0 +1,9 @@
@@ -0,0 +1,9 @@
|
||||
# Copyright (c) 2020 Ryan Cross |
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
# Uncomment the following line to enable the Sofle OLED Display |
||||
# CONFIG_ZMK_DISPLAY=y |
||||
|
||||
# Uncomment these two lines to add support for encoders |
||||
# CONFIG_EC11=y |
||||
# CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y |
@ -0,0 +1,93 @@
@@ -0,0 +1,93 @@
|
||||
/* |
||||
* Copyright (c) 2020 Pete Johanson, Ryan Cross |
||||
* |
||||
* SPDX-License-Identifier: MIT |
||||
*/ |
||||
|
||||
#include <dt-bindings/zmk/matrix-transform.h> |
||||
|
||||
/ { |
||||
chosen { |
||||
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"; |
||||
label = "KSCAN"; |
||||
|
||||
diode-direction = "col2row"; |
||||
row-gpios |
||||
= <&pro_micro_d 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&pro_micro_d 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&pro_micro_d 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&pro_micro_d 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&pro_micro_d 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
; |
||||
}; |
||||
|
||||
left_encoder: encoder_left { |
||||
compatible = "alps,ec11"; |
||||
label = "LEFT_ENCODER"; |
||||
a-gpios = <&pro_micro_a 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; |
||||
b-gpios = <&pro_micro_a 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; |
||||
resolution = <4>; |
||||
status = "disabled"; |
||||
}; |
||||
|
||||
right_encoder: encoder_right { |
||||
compatible = "alps,ec11"; |
||||
label = "RIGHT_ENCODER"; |
||||
a-gpios = <&pro_micro_a 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; |
||||
b-gpios = <&pro_micro_a 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; |
||||
resolution = <4>; |
||||
status = "disabled"; |
||||
}; |
||||
|
||||
sensors { |
||||
compatible = "zmk,keymap-sensors"; |
||||
sensors = <&left_encoder &right_encoder>; |
||||
}; |
||||
|
||||
bt_unpair_combo: bt_unpair_combo { |
||||
compatible = "zmk,bt-unpair-combo"; |
||||
}; |
||||
}; |
||||
|
||||
&pro_micro_i2c { |
||||
status = "okay"; |
||||
|
||||
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>; |
||||
}; |
||||
}; |
@ -0,0 +1,64 @@
@@ -0,0 +1,64 @@
|
||||
#include <behaviors.dtsi> |
||||
#include <dt-bindings/zmk/keys.h> |
||||
#include <dt-bindings/zmk/bt.h> |
||||
|
||||
/ { |
||||
keymap { |
||||
compatible = "zmk,keymap"; |
||||
|
||||
default_layer { |
||||
// ------------------------------------------------------------------------------------------------------------ |
||||
// | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | | |
||||
// | ESC | Q | W | E | R | T | | Y | U | I | O | P | BKSPC | |
||||
// | TAB | A | S | D | F | G | | H | J | K | L | ; | ' | |
||||
// | SHIFT | Z | X | C | V | B | MUTE | | | N | M | , | . | / | SHIFT | |
||||
// | GUI | ALT | CTRL | LOWER| ENTER | | SPACE | RAISE| CTRL | ALT | GUI | |
||||
bindings = < |
||||
&kp GRAV &kp NUM_1 &kp NUM_2 &kp NUM_3 &kp NUM_4 &kp NUM_5 &kp NUM_6 &kp NUM_7 &kp NUM_8 &kp NUM_9 &kp NUM_0 &none |
||||
&kp ESC &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BKSP |
||||
&kp TAB &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SCLN &kp QUOT |
||||
&kp LSFT &kp Z &kp X &kp C &kp V &kp B &cp M_MUTE &none &kp N &kp M &kp CMMA &kp DOT &kp FSLH &kp RSFT |
||||
&kp LGUI &kp LALT &kp LCTL &mo 1 &kp RET &kp SPC &mo 2 &kp RCTL &kp RALT &kp RGUI |
||||
>; |
||||
|
||||
sensor-bindings = <&inc_dec_cp M_VOLU M_VOLD &inc_dec_kp PGUP PGDN>; |
||||
}; |
||||
|
||||
lower_layer { |
||||
// TODO: Some binds are waiting for shifted keycode support. |
||||
// ------------------------------------------------------------------------------------------------------------ |
||||
// | | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10 | F11 | |
||||
// | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | F12 | |
||||
// | | ! | @ | # | $ | % | | ^ | & | * | ( | ) | | | |
||||
// | | = | - | + | { | } | | | | [ | ] | ; | : | \ | | |
||||
// | | | | | | | | | | | | |
||||
bindings = < |
||||
&trans &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 |
||||
&kp GRAV &kp NUM_1 &kp NUM_2 &kp NUM_3 &kp NUM_4 &kp NUM_5 &kp NUM_6 &kp NUM_7 &kp NUM_8 &kp NUM_9 &kp NUM_0 &kp F12 |
||||
&trans &kp BANG &kp ATSN &kp HASH &kp CURU &kp PRCT &kp CRRT &kp AMPS &kp KMLT &kp LPRN &kp RPRN &kp PIPE |
||||
&trans &kp EQL &kp MINUS &kp KPLS &kp LCUR &kp RCUR &trans &trans &kp LBKT &kp RBKT &kp SCLN &kp COLN &kp BSLH &trans |
||||
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans |
||||
>; |
||||
|
||||
sensor-bindings = <&inc_dec_cp M_VOLU M_VOLD &inc_dec_kp PGUP PGDN>; |
||||
}; |
||||
|
||||
raise_layer { |
||||
// ------------------------------------------------------------------------------------------------------------ |
||||
// |BTCLR| BT1 | BT2 | BT3 | BT4 | BT5 | | | | | | | | |
||||
// | | INS | PSCR | GUI | | | | PGUP | | ^ | | | | |
||||
// | | ALT | CTRL | SHIFT | | CAPS | | PGDN | <- | v | -> | DEL | BKSPC | |
||||
// | | UNDO | CUT | COPY | PASTE | | | | | | | | | | | |
||||
// | | | | | | | | | | | | |
||||
bindings = < |
||||
&bt BT_CLR &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 &kp INS &kp PRSC &kp GUI &trans &trans &kp PGUP &trans &kp UARW &trans &kp NUM_0 &trans |
||||
&trans &kp LALT &kp LCTL &kp LSFT &trans &kp CLCK &kp PGDN &kp LARW &kp DARW &kp RARW &kp DEL &kp BKSP |
||||
&trans &kp UNDO &kp CUT &kp COPY &kp PSTE &trans &trans &trans &trans &trans &trans &trans &trans &trans |
||||
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans |
||||
>; |
||||
|
||||
sensor-bindings = <&inc_dec_cp M_VOLU M_VOLD &inc_dec_kp PGUP PGDN>; |
||||
}; |
||||
}; |
||||
}; |
@ -0,0 +1,5 @@
@@ -0,0 +1,5 @@
|
||||
# Copyright (c) 2020 Ryan Cross |
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
CONFIG_ZMK_SPLIT=y |
||||
CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL=y |
@ -0,0 +1,26 @@
@@ -0,0 +1,26 @@
|
||||
/* |
||||
* Copyright (c) 2020 Ryan Cross |
||||
* |
||||
* SPDX-License-Identifier: MIT |
||||
*/ |
||||
|
||||
#include "sofle.dtsi" |
||||
|
||||
&kscan0 { |
||||
col-gpios |
||||
= <&pro_micro_a 1 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_a 0 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_d 15 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_d 14 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_d 16 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_d 10 GPIO_ACTIVE_HIGH> |
||||
; |
||||
}; |
||||
|
||||
&left_encoder { |
||||
status = "okay"; |
||||
}; |
||||
|
||||
&bt_unpair_combo { |
||||
key-positions = <0 54>; |
||||
}; |
@ -0,0 +1,5 @@
@@ -0,0 +1,5 @@
|
||||
# Copyright (c) 2020 Ryan Cross |
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
CONFIG_ZMK_SPLIT=y |
||||
CONFIG_ZMK_SPLIT_BLE_ROLE_PERIPHERAL=y |
@ -0,0 +1,30 @@
@@ -0,0 +1,30 @@
|
||||
/* |
||||
* Copyright (c) 2020 Ryan Cross |
||||
* |
||||
* SPDX-License-Identifier: MIT |
||||
*/ |
||||
|
||||
#include "sofle.dtsi" |
||||
|
||||
&default_transform { |
||||
col-offset = <6>; |
||||
}; |
||||
|
||||
&kscan0 { |
||||
col-gpios |
||||
= <&pro_micro_d 10 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_d 16 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_d 14 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_d 15 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_a 0 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_a 1 GPIO_ACTIVE_HIGH> |
||||
; |
||||
}; |
||||
|
||||
&right_encoder { |
||||
status = "okay"; |
||||
}; |
||||
|
||||
&bt_unpair_combo { |
||||
key-positions = <11 55>; |
||||
}; |
@ -0,0 +1,22 @@
@@ -0,0 +1,22 @@
|
||||
|
||||
#Copyright (c) 2020 Derek Schmell |
||||
#SPDX-License-Identifier: MIT |
||||
|
||||
|
||||
if SHIELD_SPLITREUS62_LEFT |
||||
|
||||
config ZMK_KEYBOARD_NAME |
||||
default "Splitreus62 Left" |
||||
|
||||
endif |
||||
|
||||
if SHIELD_SPLITREUS62_RIGHT |
||||
|
||||
config ZMK_KEYBOARD_NAME |
||||
default "Splitreus62 Right" |
||||
|
||||
endif |
||||
|
||||
if SHIELD_SPLITREUS62_LEFT || SHIELD_SPLITREUS62_RIGHT |
||||
|
||||
endif |
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2020 Derek Schmell |
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
config SHIELD_SPLITREUS62_LEFT |
||||
def_bool $(shields_list_contains,splitreus62_left) |
||||
|
||||
config SHIELD_SPLITREUS62_RIGHT |
||||
def_bool $(shields_list_contains,splitreus62_right) |
@ -0,0 +1,50 @@
@@ -0,0 +1,50 @@
|
||||
/* |
||||
* Copyright (c) 2020 Derek Schmell |
||||
* |
||||
* SPDX-License-Identifier: MIT |
||||
*/ |
||||
|
||||
#include <dt-bindings/zmk/matrix-transform.h> |
||||
|
||||
/ { |
||||
chosen { |
||||
zmk,kscan = &kscan0; |
||||
zmk,matrix_transform = &default_transform; |
||||
}; |
||||
|
||||
default_transform: keymap_transform_0 { |
||||
compatible = "zmk,matrix-transform"; |
||||
columns = <12>; |
||||
rows = <6>; |
||||
// | SW0 | SW5 | SW10 | SW15 | SW20 | SW25 | SW25 | SW20 | SW15 | SW10 | SW5 | SW1 | |
||||
// | SW1 | SW6 | SW11 | SW16 | SW21 | SW26 | SW26 | SW21 | SW16 | SW11 | SW6 | SW2 | |
||||
// | SW2 | SW7 | SW12 | SW17 | SW22 | SW27 | SW27 | SW22 | SW17 | SW12 | SW7 | SW3 | |
||||
// | SW3 | SW8 | SW13 | SW18 | SW23 | SW28 | SW28 | SW23 | SW18 | SW13 | SW8 | SW4 | |
||||
// | SW4 | SW9 | SW14 | SW19 | SW24 | SW29 | SW29 | SW24 | SW19 | SW14 | SW9 | SW5 | |
||||
// SW30 | 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(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,5) RC(4,6) RC(4,7) RC(4,8) RC(4,9) RC(4,10) RC(4,11) |
||||
RC(5,5) RC(5,6) |
||||
>; |
||||
}; |
||||
|
||||
kscan0: kscan { |
||||
compatible = "zmk,kscan-gpio-matrix"; |
||||
label = "KSCAN"; |
||||
|
||||
diode-direction = "row2col"; |
||||
row-gpios |
||||
= <&pro_micro_d 1 GPIO_ACTIVE_HIGH > |
||||
, <&pro_micro_d 0 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_d 2 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_d 4 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_d 5 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro_d 6 GPIO_ACTIVE_HIGH> |
||||
; |
||||
|
||||
}; |
||||
}; |
@ -0,0 +1,31 @@
@@ -0,0 +1,31 @@
|
||||
/* |
||||
* Copyright (c) 2020 Derek Schmell |
||||
* |
||||
* SPDX-License-Identifier: MIT |
||||
*/ |
||||
|
||||
#include <behaviors.dtsi> |
||||
#include <dt-bindings/zmk/keys.h> |
||||
|
||||
/ { |
||||
keymap { |
||||
compatible = "zmk,keymap"; |
||||
|
||||
default_layer { |
||||
// ------------------------------------------------------------------------------------------------------------ |
||||
// | ESC | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | - | |
||||
// | TAB | Q | W | E | R | T | | Y | U | I | O | P | \ | |
||||
// | CTRL | A | S | D | F | G | | H | J | K | L | ; | ' | |
||||
// | SHIFT | Z | X | C | V | B | | N | M | , | . | / | SHIFT | |
||||
// | LCTL | LGUI | LALT | GRAV | | EQL | DEL | BKSP| | RET | SPC | LBKT | RBKT | LBKT | HOME | END | |
||||
bindings = < |
||||
&kp ESC &kp NUM_1 &kp NUM_2 &kp NUM_3 &kp NUM_4 &kp NUM_5 &kp NUM_6 &kp NUM_7 &kp NUM_8 &kp NUM_9 &kp NUM_0 &kp MINUS |
||||
&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSLH |
||||
&kp LCTL &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SCLN &kp QUOT |
||||
&kp LSFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp CMMA &kp DOT &kp FSLH &kp RSFT |
||||
&kp LCTL &kp LGUI &kp LALT &kp GRAV &kp EQL &kp DEL &kp SPC &kp LBKT &kp RBKT &kp MINUS &kp HOME &kp END |
||||
&kp BKSP &kp RET |
||||
>; |
||||
}; |
||||
}; |
||||
}; |
@ -0,0 +1,2 @@
@@ -0,0 +1,2 @@
|
||||
CONFIG_ZMK_SPLIT=y |
||||
CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL=y |
@ -0,0 +1,18 @@
@@ -0,0 +1,18 @@
|
||||
/* |
||||
* Copyright (c) 2020 Derek Schmell |
||||
* |
||||
* SPDX-License-Identifier: MIT |
||||
*/ |
||||
|
||||
#include "splitreus62.dtsi" |
||||
|
||||
&kscan0 { |
||||
col-gpios |
||||
= <&pro_micro_d 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&pro_micro_d 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&pro_micro_d 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&pro_micro_d 10 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&pro_micro_d 16 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&pro_micro_d 14 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
; |
||||
}; |
@ -0,0 +1,2 @@
@@ -0,0 +1,2 @@
|
||||
CONFIG_ZMK_SPLIT=y |
||||
CONFIG_ZMK_SPLIT_BLE_ROLE_PERIPHERAL=y |
@ -0,0 +1,22 @@
@@ -0,0 +1,22 @@
|
||||
/* |
||||
* Copyright (c) 2020 Derek Schmell |
||||
* |
||||
* SPDX-License-Identifier: MIT |
||||
*/ |
||||
|
||||
#include "splitreus62.dtsi" |
||||
|
||||
&default_transform { |
||||
col-offset = <6>; |
||||
}; |
||||
|
||||
&kscan0 { |
||||
col-gpios |
||||
= <&pro_micro_d 14 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&pro_micro_d 16 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&pro_micro_d 10 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&pro_micro_d 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&pro_micro_d 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&pro_micro_d 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
; |
||||
}; |
@ -0,0 +1,9 @@
@@ -0,0 +1,9 @@
|
||||
/ { |
||||
behaviors { |
||||
bt: behavior_bluetooth { |
||||
compatible = "zmk,behavior-bluetooth"; |
||||
label = "BLUETOOTH"; |
||||
#binding-cells = <2>; |
||||
}; |
||||
}; |
||||
}; |
@ -0,0 +1,12 @@
@@ -0,0 +1,12 @@
|
||||
/ { |
||||
behaviors { |
||||
lt: behavior_layer_tap { |
||||
compatible = "zmk,behavior-hold-tap"; |
||||
label = "LAYER_TAP"; |
||||
#binding-cells = <2>; |
||||
flavor = "tap-preferred"; |
||||
tapping_term_ms = <200>; |
||||
bindings = <&mo>, <&kp>; |
||||
}; |
||||
}; |
||||
}; |
@ -1,9 +1,12 @@
@@ -1,9 +1,12 @@
|
||||
/ { |
||||
behaviors { |
||||
mt: behavior_mod_tap { |
||||
compatible = "zmk,behavior-mod-tap"; |
||||
compatible = "zmk,behavior-hold-tap"; |
||||
label = "MOD_TAP"; |
||||
#binding-cells = <2>; |
||||
flavor = "hold-preferred"; |
||||
tapping_term_ms = <200>; |
||||
bindings = <&kp>, <&kp>; |
||||
}; |
||||
}; |
||||
}; |
||||
|
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2020, Peter Johanson |
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
description: Bluetooth Behavior |
||||
|
||||
compatible: "zmk,behavior-bluetooth" |
||||
|
||||
include: two_param.yaml |
@ -0,0 +1,23 @@
@@ -0,0 +1,23 @@
|
||||
# Copyright (c) 2020 The ZMK Contributors |
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
description: Hold or Tap behavior |
||||
|
||||
compatible: "zmk,behavior-hold-tap" |
||||
|
||||
include: two_param.yaml |
||||
|
||||
properties: |
||||
bindings: |
||||
type: phandles |
||||
required: true |
||||
tapping_term_ms: |
||||
type: int |
||||
flavor: |
||||
type: string |
||||
required: false |
||||
default: "hold-preferred" |
||||
enum: |
||||
- "hold-preferred" |
||||
- "balanced" |
||||
- "tap-preferred" |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue