Browse Source
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
6 changed files with 70 additions and 0 deletions
@ -0,0 +1,9 @@
@@ -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 |
@ -0,0 +1,5 @@
@@ -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 @@
@@ -0,0 +1,2 @@
|
||||
# Copyright (c) 2022 The ZMK Contributors |
||||
# SPDX-License-Identifier: MIT |
@ -0,0 +1,22 @@
@@ -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 |
||||
>; |
||||
}; |
||||
}; |
||||
}; |
@ -0,0 +1,24 @@
@@ -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 @@
@@ -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 new issue