From b04652cd79cac53322e3c9f4e496bacd4facf192 Mon Sep 17 00:00:00 2001 From: Lenbok Date: Sun, 10 Sep 2023 09:08:52 +1200 Subject: [PATCH] Port support for spaceman 2% milk macropad --- keyboards/spaceman/2_milk/keymaps/vial/config.h | 9 +++++++++ keyboards/spaceman/2_milk/keymaps/vial/keymap.c | 8 ++++++++ keyboards/spaceman/2_milk/keymaps/vial/rules.mk | 8 ++++++++ keyboards/spaceman/2_milk/keymaps/vial/vial.json | 13 +++++++++++++ 4 files changed, 38 insertions(+) create mode 100644 keyboards/spaceman/2_milk/keymaps/vial/config.h create mode 100644 keyboards/spaceman/2_milk/keymaps/vial/keymap.c create mode 100644 keyboards/spaceman/2_milk/keymaps/vial/rules.mk create mode 100644 keyboards/spaceman/2_milk/keymaps/vial/vial.json diff --git a/keyboards/spaceman/2_milk/keymaps/vial/config.h b/keyboards/spaceman/2_milk/keymaps/vial/config.h new file mode 100644 index 00000000000..76a196c1384 --- /dev/null +++ b/keyboards/spaceman/2_milk/keymaps/vial/config.h @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#pragma once + +#define VIAL_KEYBOARD_UID {0x50, 0xB8, 0x6D, 0x63, 0x19, 0xE1, 0xC6, 0xEC} +#define VIAL_UNLOCK_COMBO_ROWS { 0, 1 } +#define VIAL_UNLOCK_COMBO_COLS { 0, 0 } + +#define DYNAMIC_KEYMAP_LAYER_COUNT 4 diff --git a/keyboards/spaceman/2_milk/keymaps/vial/keymap.c b/keyboards/spaceman/2_milk/keymaps/vial/keymap.c new file mode 100644 index 00000000000..02bc67b9f8d --- /dev/null +++ b/keyboards/spaceman/2_milk/keymaps/vial/keymap.c @@ -0,0 +1,8 @@ +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT( + KC_Z, + KC_X + ) +}; diff --git a/keyboards/spaceman/2_milk/keymaps/vial/rules.mk b/keyboards/spaceman/2_milk/keymaps/vial/rules.mk new file mode 100644 index 00000000000..7de9783aed3 --- /dev/null +++ b/keyboards/spaceman/2_milk/keymaps/vial/rules.mk @@ -0,0 +1,8 @@ +MOUSEKEY_ENABLE = no # Mouse keys +RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. +VIA_ENABLE = yes # Enable VIA +VIAL_ENABLE = yes # Enable VIAL +OLED_ENABLE = no +LTO_ENABLE = yes +QMK_SETTINGS = no +COMBO_ENABLE = yes diff --git a/keyboards/spaceman/2_milk/keymaps/vial/vial.json b/keyboards/spaceman/2_milk/keymaps/vial/vial.json new file mode 100644 index 00000000000..027c36e2384 --- /dev/null +++ b/keyboards/spaceman/2_milk/keymaps/vial/vial.json @@ -0,0 +1,13 @@ +{ + "name": "spaceman_2_milk", + "vendorId": "0x5342", + "productId": "0x3225", + "lighting": "qmk_rgblight", + "matrix": { + "rows": 2, + "cols": 1 + }, + "layouts": { + "keymap": [["0,0"], ["1,0"]] + } +}