Browse Source

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>
xmkb
Aaron Nunley 4 years ago committed by Nick Winans
parent
commit
d6a2290d5e
  1. 9
      app/boards/shields/two_percent_milk/Kconfig.defconfig
  2. 5
      app/boards/shields/two_percent_milk/Kconfig.shield
  3. 2
      app/boards/shields/two_percent_milk/two_percent_milk.conf
  4. 22
      app/boards/shields/two_percent_milk/two_percent_milk.keymap
  5. 24
      app/boards/shields/two_percent_milk/two_percent_milk.overlay
  6. 8
      app/boards/shields/two_percent_milk/two_percent_milk.zmk.yml

9
app/boards/shields/two_percent_milk/Kconfig.defconfig

@ -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

@ -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)

2
app/boards/shields/two_percent_milk/two_percent_milk.conf

@ -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

@ -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

@ -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)>
;
};
};

8
app/boards/shields/two_percent_milk/two_percent_milk.zmk.yml

@ -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…
Cancel
Save