Pete Johanson
5 years ago
4 changed files with 59 additions and 173 deletions
@ -1,39 +1,11 @@
@@ -1,39 +1,11 @@
|
||||
# Planck keyboard configuration |
||||
|
||||
# Copyright (c) 2017 I-SENSE group of ICCS |
||||
# Copyright (c) 2020 Peter Johanson |
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
if BOARD_PLANCK_REV6 |
||||
|
||||
config BOARD |
||||
default "planck_rev6" |
||||
|
||||
config UART_1 |
||||
default y |
||||
depends on UART_CONSOLE |
||||
|
||||
if I2C |
||||
|
||||
config I2C_1 |
||||
default y |
||||
|
||||
config I2C_2 |
||||
default y |
||||
|
||||
endif # I2C |
||||
|
||||
if SPI |
||||
|
||||
config SPI_1 |
||||
default y |
||||
|
||||
config SPI_2 |
||||
default y |
||||
|
||||
endif # SPI |
||||
|
||||
config CAN_1 |
||||
default y |
||||
depends on CAN |
||||
config ZMK_KEYBOARD_NAME |
||||
default "Planck V6" |
||||
|
||||
endif # BOARD_PLANCK_REV6 |
||||
|
@ -0,0 +1,34 @@
@@ -0,0 +1,34 @@
|
||||
#include <behaviors.dtsi> |
||||
#include <dt-bindings/zmk/keys.h> |
||||
#include <dt-bindings/zmk/matrix-transform.h> |
||||
|
||||
/ { |
||||
chosen { |
||||
zmk,keymap = &keymap0; |
||||
}; |
||||
|
||||
keymap0: keymap { |
||||
compatible = "zmk,keymap"; |
||||
label ="Default Planck Keymap"; |
||||
layers = <&default>; |
||||
}; |
||||
|
||||
layers { |
||||
compatible = "zmk,layers"; |
||||
|
||||
default: layer_0 { |
||||
label = "DEFAULT"; |
||||
// ----------------------------------------------------------------------------------------- |
||||
// | TAB | Q | W | E | R | T | Y | U | I | O | P | BSPC | |
||||
// | ESC | A | S | D | F | G | H | J | K | L | ; | ' | |
||||
// | SHIFT | Z | X | C | V | B | N | M | , | . | / | RET | |
||||
// | FN | LGUI | LALT | LCTL | LOWR | SPACE | RAIS | LARW | DARW | UARW | RARW | |
||||
bindings = < |
||||
&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp DEL |
||||
&kp ESC &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 BSLH &kp RET |
||||
&trans &kp LGUI &kp LALT &kp LCTL &trans &trans &kp SPC &trans &kp LARW &kp DARW &kp UARW &kp RARW |
||||
>; |
||||
}; |
||||
}; |
||||
}; |
Loading…
Reference in new issue