Add files via upload

This commit is contained in:
reechaard 2021-02-28 20:48:22 -08:00 committed by GitHub
parent 78b3c9d258
commit af0d6aafcd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 100 additions and 0 deletions

View file

@ -0,0 +1,12 @@
# Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT
if SHIELD_LAUNCHPAD
config ZMK_KEYBOARD_NAME
default "LaunchPad"
config ZMK_USB
default y
endif

View file

@ -0,0 +1,5 @@
# Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT
config SHIELD_LAUNCHPAD
def_bool $(shields_list_contains,launchpad)

View file

@ -0,0 +1,4 @@
# Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT
CONFIG_BT_MAX_CONN=6

View file

@ -0,0 +1,47 @@
/*
* Copyright (c) 2020 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/
#include <behaviors.dtsi>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/ext_power.h>
/* Layers */
#define _FUNC 1
#define _ADMIN 2
/ {
keymap {
compatible = "zmk,keymap";
default_layer {
bindings = <
&kp N1 &kp N2
&kp N3 &kp N4
&kp N5 &kp N6
&mo _ADMIN &mo _FUNC
>;
};
func_layer {
bindings = <
&kp Q &kp LC(LA(DELETE))
&kp A &kp LC(LS(ESCAPE))
&kp Z &kp X
&trans &trans
>;
};
admin_layer {
bindings = <
&bootloader &reset
&kp N7 &kp N8
&kp N9 &kp N0
&trans &trans
>;
};
};
};

View file

@ -0,0 +1,32 @@
/*
* 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-matrix";
label = "KSCAN";
diode-direction = "col2row";
col-gpios
= <&pro_micro_d 0 GPIO_ACTIVE_HIGH>
, <&pro_micro_a 0 GPIO_ACTIVE_HIGH>
;
row-gpios
= <&pro_micro_d 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&pro_micro_d 15 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&pro_micro_d 14 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&pro_micro_d 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
;
};
};