diff --git a/app/boards/shields/stream_cheap/Kconfig.defconfig b/app/boards/shields/stream_cheap/Kconfig.defconfig new file mode 100644 index 00000000..105e6496 --- /dev/null +++ b/app/boards/shields/stream_cheap/Kconfig.defconfig @@ -0,0 +1,7 @@ + +if SHIELD_STREAM_CHEAP + +config ZMK_KEYBOARD_NAME + default "Stream Cheap" + +endif diff --git a/app/boards/shields/stream_cheap/Kconfig.shield b/app/boards/shields/stream_cheap/Kconfig.shield new file mode 100644 index 00000000..28fea96c --- /dev/null +++ b/app/boards/shields/stream_cheap/Kconfig.shield @@ -0,0 +1,5 @@ +# Copyright (c) 2022 Luigi311 +# SPDX-License-Identifier: MIT + +config SHIELD_STREAM_CHEAP + def_bool $(shields_list_contains,stream_cheap) diff --git a/app/boards/shields/stream_cheap/README.md b/app/boards/shields/stream_cheap/README.md new file mode 100644 index 00000000..0e45245f --- /dev/null +++ b/app/boards/shields/stream_cheap/README.md @@ -0,0 +1,14 @@ +# [Stream Cheap 2x4 Macropad](https://www.partsnotincluded.com/diy-stream-deck-mini-macro-keyboard/) + +A small 8-key macropad as a cheap alternative to the stream deck. + +## Features + +- Direct GPIO wiring, no GPIO matrix at all. +- Simple PCB design for hotswap switches. + +## Build + + + +west build -p -b nice_nano_v2 -- -DSHIELD=stream_cheap_2x4 diff --git a/app/boards/shields/stream_cheap/stream_cheap_2x4.keymap b/app/boards/shields/stream_cheap/stream_cheap_2x4.keymap new file mode 100644 index 00000000..122f8624 --- /dev/null +++ b/app/boards/shields/stream_cheap/stream_cheap_2x4.keymap @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2021 Luigi311 + * + * SPDX-License-Identifier: MIT + */ + +#include +#include +#include + +#define DEFAULT 0 +#define LOWER 1 + +/ { + combos { + compatible = "zmk,combos"; + combo_bootloader { + timeout-ms = <100>; + key-positions = <2 3 6 7>; + bindings = <&bootloader>; + }; + combo_reboot { + timeout-ms = <100>; + key-positions = <0 1 4 5>; + bindings = <&reset>; + }; + }; +}; + +/ { + keymap0: keymap { + compatible = "zmk,keymap"; + + default_layer { + bindings = < + &kp F13 &kp F14 &kp F15 &kp F16 + &kp F17 &kp F18 &kp F19 &mo LOWER + >; + }; + + lower_layer { + bindings = < + &kp F20 &kp F21 &kp F22 &kp F23 + &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_CLR &trans + >; + }; + }; +}; \ No newline at end of file diff --git a/app/boards/shields/stream_cheap/stream_cheap_2x4.overlay b/app/boards/shields/stream_cheap/stream_cheap_2x4.overlay new file mode 100644 index 00000000..ced24468 --- /dev/null +++ b/app/boards/shields/stream_cheap/stream_cheap_2x4.overlay @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2021 Luigi311 + * + * SPDX-License-Identifier: MIT + */ + +/ { + chosen { + zmk,kscan = &kscan0; + }; + + kscan0: kscan_0 { + compatible = "zmk,kscan-gpio-direct"; + + label = "KSCAN"; + + input-gpios + = <&pro_micro 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&pro_micro 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&pro_micro 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&pro_micro 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&pro_micro 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&pro_micro 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&pro_micro 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&pro_micro 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + ; + + }; + +}; +