Added support for 2% Milk (Updated with metadata)
Update app/boards/shields/two_percent_milk/two_percent_milk.overlay Co-Authored-By: Nick Winans <nick@winans.codes>
This commit is contained in:
parent
2b4d5dd7d9
commit
d6a2290d5e
6 changed files with 70 additions and 0 deletions
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) 2022 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) 2022 The ZMK Contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
config SHIELD_TWO_PERCENT_MILK
|
||||
def_bool $(shields_list_contains,two_percent_milk)
|
|
@ -0,0 +1,2 @@
|
|||
# Copyright (c) 2022 The ZMK Contributors
|
||||
# SPDX-License-Identifier: MIT
|
22
app/boards/shields/two_percent_milk/two_percent_milk.keymap
Normal file
22
app/boards/shields/two_percent_milk/two_percent_milk.keymap
Normal file
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* 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>
|
||||
|
||||
/ {
|
||||
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) 2022 The ZMK Contributors
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
zmk,kscan = &kscan0;
|
||||
};
|
||||
|
||||
kscan0: kscan {
|
||||
compatible = "zmk,kscan-gpio-direct";
|
||||
|
||||
label = "KSCAN";
|
||||
|
||||
input-gpios
|
||||
= <&pro_micro 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||
, <&pro_micro 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||
;
|
||||
|
||||
};
|
||||
|
||||
};
|
|
@ -0,0 +1,8 @@
|
|||
file_format: "1"
|
||||
id: two_percent_milk
|
||||
name: 2% Milk
|
||||
type: shield
|
||||
url: https://github.com/Spaceboards/SpaceboardsHardware/tree/master/Keyboards/2%25%20Milk
|
||||
requires: [pro_micro]
|
||||
features:
|
||||
- keys
|
Loading…
Reference in a new issue