Browse Source
* add support for Spaceman Pancake Co-authored-by: Pete Johanson <peter@peterjohanson.com> Co-authored-by: Jason Hazel <jhazel@matrixmediaservices.com> Co-authored-by: Pete Johanson <peter@peterjohanson.com>xmkb
Jason Hazel
2 years ago
committed by
Julia Luna
6 changed files with 119 additions and 0 deletions
@ -0,0 +1,9 @@
@@ -0,0 +1,9 @@
|
||||
# Copyright (c) 2022 The ZMK Contributors |
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
if SHIELD_PANCAKE |
||||
|
||||
config ZMK_KEYBOARD_NAME |
||||
default "Pancake" |
||||
|
||||
endif |
@ -0,0 +1,5 @@
@@ -0,0 +1,5 @@
|
||||
# Copyright (c) 2022 The ZMK Contributors |
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
config SHIELD_PANCAKE |
||||
def_bool $(shields_list_contains,pancake) |
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
# CONFIG_ZMK_USB_LOGGING=y |
@ -0,0 +1,57 @@
@@ -0,0 +1,57 @@
|
||||
/* |
||||
* Copyright (c) 2022 The ZMK Contributors |
||||
* |
||||
* SPDX-License-Identifier: MIT |
||||
*/ |
||||
|
||||
#include <behaviors.dtsi> |
||||
#include <dt-bindings/zmk/keys.h> |
||||
#include <dt-bindings/zmk/bt.h> |
||||
#include <dt-bindings/zmk/outputs.h> |
||||
|
||||
#define DEF 0 |
||||
#define LWR 1 |
||||
#define RSE 2 |
||||
#define FNC 3 |
||||
|
||||
/ { |
||||
keymap { |
||||
compatible = "zmk,keymap"; |
||||
|
||||
default_layer { |
||||
bindings = < |
||||
&kp ESC &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSPC |
||||
&kp TAB &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SQT &kp SEMI |
||||
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp UP &kp ENTER |
||||
&kp LCTRL &kp LALT &kp LGUI &mo FNC &mo LWR &kp SPACE &kp SPACE &mo RSE &kp SLASH &kp LEFT &kp DOWN &kp RIGHT |
||||
>; |
||||
}; |
||||
|
||||
lower_layer { |
||||
bindings = < |
||||
&kp TILDE &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp STAR &kp LPAR &kp RPAR &kp BSPC |
||||
&trans &trans &trans &trans &trans &trans &trans &trans &kp UNDER &kp PLUS &trans &trans |
||||
&trans &trans &trans &trans &trans &trans &trans &trans &kp LBRC &kp RBRC &kp C_VOL_UP &trans |
||||
&trans &trans &trans &trans &trans &trans &trans &trans &kp QMARK &trans &kp C_VOL_DN &trans |
||||
>; |
||||
}; |
||||
|
||||
raise_layer { |
||||
bindings = < |
||||
&kp GRAVE &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp BSPC |
||||
&trans &trans &trans &trans &trans &trans &trans &trans &kp MINUS &kp EQUAL &trans &kp BSLH |
||||
&trans &trans &trans &trans &trans &trans &trans &trans &kp LBKT &kp RBKT &kp C_VOL_UP &trans |
||||
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &kp C_VOL_DN &trans |
||||
>; |
||||
}; |
||||
|
||||
function_layer { |
||||
bindings = < |
||||
&bootloader &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &trans |
||||
&trans &trans &trans &trans &trans &trans &trans &trans &kp MINUS &kp F11 &kp F12 &trans |
||||
&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 |
||||
&out OUT_BLE &out OUT_USB &out OUT_TOG &trans &trans &trans &trans &trans &trans &trans &trans &trans |
||||
>; |
||||
}; |
||||
}; |
||||
}; |
@ -0,0 +1,39 @@
@@ -0,0 +1,39 @@
|
||||
/* |
||||
* Copyright (c) 2022 The ZMK Contributors |
||||
* |
||||
* SPDX-License-Identifier: MIT |
||||
*/ |
||||
|
||||
/ { |
||||
chosen { |
||||
zmk,kscan = &kscan0; |
||||
}; |
||||
|
||||
kscan0: kscan_0 { |
||||
compatible = "zmk,kscan-gpio-matrix"; |
||||
label = "KSCAN"; |
||||
diode-direction = "col2row"; |
||||
|
||||
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 7 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro 8 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro 9 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro 6 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro 5 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro 4 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro 3 GPIO_ACTIVE_HIGH> |
||||
, <&pro_micro 2 GPIO_ACTIVE_HIGH> |
||||
; |
||||
|
||||
row-gpios |
||||
= <&pro_micro 15 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&pro_micro 14 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&pro_micro 16 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
, <&pro_micro 10 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> |
||||
; |
||||
}; |
||||
}; |
Loading…
Reference in new issue