diff --git a/keyboards/m10a/config.h b/keyboards/m10a/config.h index 01f9d0d0a3a9..9364d0b554be 100644 --- a/keyboards/m10a/config.h +++ b/keyboards/m10a/config.h @@ -25,7 +25,7 @@ #define PRODUCT_ID 0x00AA // 10-A #define DEVICE_VER 0x0001 #define MANUFACTURER RAMA WORKS -#define PRODUCT RAMA WORKS M10-A +#define PRODUCT M10-A /* key matrix size */ #define MATRIX_ROWS 4 diff --git a/keyboards/m10a/keymaps/vial/config.h b/keyboards/m10a/keymaps/vial/config.h new file mode 100644 index 000000000000..2f1a0c1ff85b --- /dev/null +++ b/keyboards/m10a/keymaps/vial/config.h @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#pragma once + +#define VIAL_KEYBOARD_UID {0xBE, 0x28, 0xE8, 0x9E, 0xD3, 0x60, 0x95, 0xCF} +#define VIAL_UNLOCK_COMBO_ROWS {3, 1} +#define VIAL_UNLOCK_COMBO_COLS {2, 1} +#define VIAL_TAP_DANCE_ENTRIES 4 +#define BACKLIGHT_BREATHING diff --git a/keyboards/m10a/keymaps/vial/keymap.c b/keyboards/m10a/keymaps/vial/keymap.c new file mode 100644 index 000000000000..cf78836d49d0 --- /dev/null +++ b/keyboards/m10a/keymaps/vial/keymap.c @@ -0,0 +1,60 @@ +/* Copyright + * 2017 Josh Black (@consolenaut) + * 2021 QMK + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#include QMK_KEYBOARD_H + +enum layer_names { + _LAYER0, + _LAYER1, + _LAYER2, + _LAYER3, + +}; + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [_LAYER0] = LAYOUT( + KC_A, KC_B, KC_C, + KC_D, KC_E, KC_F, + KC_G, KC_H, KC_I, + KC_J + ), + [_LAYER1] = LAYOUT( + KC_A, KC_B, KC_C, + KC_D, KC_E, KC_F, + KC_G, KC_H, KC_I, + KC_J + ), + [_LAYER2] = LAYOUT( + KC_A, KC_B, KC_C, + KC_D, KC_E, KC_F, + KC_G, KC_H, KC_I, + KC_J + ), + [_LAYER3] = LAYOUT( + KC_A, KC_B, KC_C, + KC_D, KC_E, KC_F, + KC_G, KC_H, KC_I, + KC_J + ), +}; + +void matrix_init_user(void) { +#ifdef BACKLIGHT_ENABLE + backlight_level(0); +#endif +} diff --git a/keyboards/m10a/keymaps/vial/rules.mk b/keyboards/m10a/keymaps/vial/rules.mk new file mode 100644 index 000000000000..1fafb1244870 --- /dev/null +++ b/keyboards/m10a/keymaps/vial/rules.mk @@ -0,0 +1,5 @@ +VIA_ENABLE = yes +VIAL_ENABLE = yes +LTO_ENABLE = yes +BACKLIGHT_ENABLE = yes +MOUSEKEY_ENABLE = no diff --git a/keyboards/m10a/keymaps/vial/vial.json b/keyboards/m10a/keymaps/vial/vial.json new file mode 100644 index 000000000000..610bc479e596 --- /dev/null +++ b/keyboards/m10a/keymaps/vial/vial.json @@ -0,0 +1,33 @@ +{ + "name": "RAMA WORKS M10-A", + "vendorId": "0x5241", + "productId": "0x00AA", + "lighting": "none", + "matrix": {"rows": 4, "cols": 3}, + "layouts": { + "keymap": [ + [ + "0,0", + "0,1", + "0,2" + ], + [ + "1,0", + "1,1", + "1,2" + ], + [ + "2,0", + "2,1", + "2,2" + ], + [ + { + "x": 1, + "w": 2 + }, + "3,2" + ] + ] + } +}