Add files via upload
This commit is contained in:
parent
78b3c9d258
commit
af0d6aafcd
5 changed files with 100 additions and 0 deletions
12
app/boards/shields/launchpad/Kconfig.defconfig
Normal file
12
app/boards/shields/launchpad/Kconfig.defconfig
Normal 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
|
5
app/boards/shields/launchpad/Kconfig.shield
Normal file
5
app/boards/shields/launchpad/Kconfig.shield
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# Copyright (c) 2020 The ZMK Contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
config SHIELD_LAUNCHPAD
|
||||||
|
def_bool $(shields_list_contains,launchpad)
|
4
app/boards/shields/launchpad/launchpad.conf
Normal file
4
app/boards/shields/launchpad/launchpad.conf
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# Copyright (c) 2020 The ZMK Contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
CONFIG_BT_MAX_CONN=6
|
47
app/boards/shields/launchpad/launchpad.keymap
Normal file
47
app/boards/shields/launchpad/launchpad.keymap
Normal 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
|
||||||
|
>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
32
app/boards/shields/launchpad/launchpad.overlay
Normal file
32
app/boards/shields/launchpad/launchpad.overlay
Normal 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)>
|
||||||
|
;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue