Added support for 2% Milk
This commit is contained in:
parent
64a85b7a3f
commit
055ecab826
5 changed files with 63 additions and 0 deletions
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
|
@ -46,6 +46,7 @@ jobs:
|
||||||
- lily58_right
|
- lily58_right
|
||||||
- microdox_left
|
- microdox_left
|
||||||
- microdox_right
|
- microdox_right
|
||||||
|
- two_percent_milk
|
||||||
- nibble
|
- nibble
|
||||||
- qaz
|
- qaz
|
||||||
- quefrency_left
|
- quefrency_left
|
||||||
|
|
9
app/boards/shields/two_percent_milk/Kconfig.defconfig
Normal file
9
app/boards/shields/two_percent_milk/Kconfig.defconfig
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# Copyright (c) 2021 The ZMK Contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
if SHIELD_TWO_PERCENT_MILK
|
||||||
|
|
||||||
|
config ZMK_KEYBOARD_NAME
|
||||||
|
default "2% Milk"
|
||||||
|
|
||||||
|
endif
|
5
app/boards/shields/two_percent_milk/Kconfig.shield
Normal file
5
app/boards/shields/two_percent_milk/Kconfig.shield
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# Copyright (c) 2021 The ZMK Contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
config SHIELD_TWO_PERCENT_MILK
|
||||||
|
def_bool $(shields_list_contains,two_percent_milk)
|
24
app/boards/shields/two_percent_milk/two_percent_milk.keymap
Normal file
24
app/boards/shields/two_percent_milk/two_percent_milk.keymap
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2021 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
|
||||||
|
|
||||||
|
/ {
|
||||||
|
keymap {
|
||||||
|
compatible = "zmk,keymap";
|
||||||
|
|
||||||
|
default_layer {
|
||||||
|
bindings = <
|
||||||
|
&kp X
|
||||||
|
&kp Z
|
||||||
|
>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
24
app/boards/shields/two_percent_milk/two_percent_milk.overlay
Normal file
24
app/boards/shields/two_percent_milk/two_percent_milk.overlay
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2021 The ZMK Contributors
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
/ {
|
||||||
|
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)>
|
||||||
|
, <&pro_micro_d 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||||
|
;
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
Loading…
Add table
Reference in a new issue