summaryrefslogtreecommitdiff
path: root/boards/shields
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-06-08 21:07:16 -0400
committerPete Johanson <peter@peterjohanson.com>2020-06-08 21:07:16 -0400
commit38f1dbd9842eaf53db359ad46b070bfff8db1359 (patch)
tree6a24845fab2043cd0cec8b2086971ff13edeed70 /boards/shields
parent92b41d28e5668fab4fe423ccce5f3f85b4537002 (diff)
Move Zephyr app into subdirectory.
Diffstat (limited to 'boards/shields')
-rw-r--r--boards/shields/petejohanson_handwire/Kconfig.defconfig13
-rw-r--r--boards/shields/petejohanson_handwire/Kconfig.shield5
-rw-r--r--boards/shields/petejohanson_handwire/keymaps/default/include/keymap.h5
-rw-r--r--boards/shields/petejohanson_handwire/keymaps/default/keymap.c34
-rw-r--r--boards/shields/petejohanson_handwire/keymaps/default/keymap.overlay41
-rw-r--r--boards/shields/petejohanson_handwire/petejohanson_handwire.conf1
-rw-r--r--boards/shields/petejohanson_handwire/petejohanson_handwire.overlay44
7 files changed, 0 insertions, 143 deletions
diff --git a/boards/shields/petejohanson_handwire/Kconfig.defconfig b/boards/shields/petejohanson_handwire/Kconfig.defconfig
deleted file mode 100644
index 7da09ac..0000000
--- a/boards/shields/petejohanson_handwire/Kconfig.defconfig
+++ /dev/null
@@ -1,13 +0,0 @@
-
-if SHIELD_PETEJOHANSON_HANDWIRE
-
-config ZMK_KEYBOARD_NAME
- default "Pete's Handwire Breadboard"
-
-config ZMK_BLE
- default y
-
-config ZMK_ACTION_MOD_TAP
- default y
-
-endif
diff --git a/boards/shields/petejohanson_handwire/Kconfig.shield b/boards/shields/petejohanson_handwire/Kconfig.shield
deleted file mode 100644
index f6e8a3f..0000000
--- a/boards/shields/petejohanson_handwire/Kconfig.shield
+++ /dev/null
@@ -1,5 +0,0 @@
-# Copyright (c) 2019 Linaro Limited
-# SPDX-License-Identifier: Apache-2.0
-
-config SHIELD_PETEJOHANSON_HANDWIRE
- def_bool $(shields_list_contains,petejohanson_handwire)
diff --git a/boards/shields/petejohanson_handwire/keymaps/default/include/keymap.h b/boards/shields/petejohanson_handwire/keymaps/default/include/keymap.h
deleted file mode 100644
index 01cd9e5..0000000
--- a/boards/shields/petejohanson_handwire/keymaps/default/include/keymap.h
+++ /dev/null
@@ -1,5 +0,0 @@
-
-#include <dt-bindings/zmk/keys.h>
-
-#define CC_RAIS ZC_CSTM(1)
-#define CC_LOWR ZC_CSTM(2) \ No newline at end of file
diff --git a/boards/shields/petejohanson_handwire/keymaps/default/keymap.c b/boards/shields/petejohanson_handwire/keymaps/default/keymap.c
deleted file mode 100644
index 067cd08..0000000
--- a/boards/shields/petejohanson_handwire/keymaps/default/keymap.c
+++ /dev/null
@@ -1,34 +0,0 @@
-
-#include <zmk/keys.h>
-#include <zmk/keymap.h>
-#include <keymap.h>
-
-bool zmk_handle_key_user(struct zmk_key_event *key_event)
-{
- switch (key_event->key)
- {
- case CC_LOWR:
- if (key_event->pressed)
- {
- zmk_keymap_layer_activate(1);
- }
- else
- {
- zmk_keymap_layer_deactivate(1);
- }
-
- return false;
- case CC_RAIS:
- if (key_event->pressed)
- {
- zmk_keymap_layer_activate(2);
- }
- else
- {
- zmk_keymap_layer_deactivate(2);
- }
- return false;
- }
-
- return true;
-};
diff --git a/boards/shields/petejohanson_handwire/keymaps/default/keymap.overlay b/boards/shields/petejohanson_handwire/keymaps/default/keymap.overlay
deleted file mode 100644
index d87363f..0000000
--- a/boards/shields/petejohanson_handwire/keymaps/default/keymap.overlay
+++ /dev/null
@@ -1,41 +0,0 @@
-#include <dt-bindings/zmk/keys.h>
-#include <keymap.h>
-
-/ {
- chosen {
- zmk,keymap = &keymap0;
- };
- keymap0: keymap {
- compatible = "zmk,keymap";
- label ="Default keymap";
- layers = <&default &lower &raise>;
- };
-
- layers {
- compatible = "zmk,layers";
-
- default: layer_0 {
- label = "DEFAULT";
- keys =
- <
- KC_A MT(MOD_LSFT, KC_B) ZC_NO ZC_NO
- CC_RAIS CC_LOWR ZC_NO ZC_NO
- >;
- };
-
- lower: layer_1 {
- label = "LOWER";
- keys = <
- KC_MPLY KC_MNXT ZC_NO ZC_NO
- ZC_TRNS ZC_TRNS ZC_NO ZC_NO
- >;
- };
-
- raise: layer_2 {
- label = "RAISE";
- keys = <
- KC_C KC_D ZC_NO ZC_NO
- ZC_TRNS ZC_TRNS ZC_NO ZC_NO>;
- };
- };
-};
diff --git a/boards/shields/petejohanson_handwire/petejohanson_handwire.conf b/boards/shields/petejohanson_handwire/petejohanson_handwire.conf
deleted file mode 100644
index 63829ba..0000000
--- a/boards/shields/petejohanson_handwire/petejohanson_handwire.conf
+++ /dev/null
@@ -1 +0,0 @@
-CONFIG_ZMK_KSCAN_COMPOSITE_DRIVER=y
diff --git a/boards/shields/petejohanson_handwire/petejohanson_handwire.overlay b/boards/shields/petejohanson_handwire/petejohanson_handwire.overlay
deleted file mode 100644
index d65b3b1..0000000
--- a/boards/shields/petejohanson_handwire/petejohanson_handwire.overlay
+++ /dev/null
@@ -1,44 +0,0 @@
-
-/ {
- chosen {
- zmk,kscan = &kscan0;
- };
-
- kscan0: kscan_0 {
- compatible = "zmk,kscan-composite";
- label = "KSCAN_COMP";
- rows = <2>;
- columns = <4>;
-
- left {
- kscan = <&left_hand>;
- };
-
- right {
- kscan = <&right_hand>;
- column-offset = <2>;
- };
- };
-
- left_hand: kscan_1 {
- compatible = "gpio-kscan";
- label = "KSCAN_LEFT";
-
- diode-direction = "row2col";
- row-gpios = <&arduino_header 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>,
- <&arduino_header 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
- col-gpios = <&arduino_header 10 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>,
- <&arduino_header 11 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
- };
-
- right_hand: kscan_2 {
- compatible = "gpio-kscan";
- label = "KSCAN_RIGHT";
-
- diode-direction = "row2col";
- row-gpios = <&arduino_header 12 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>,
- <&arduino_header 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
- col-gpios = <&arduino_header 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>,
- <&arduino_header 15 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
- };
-};