Add Vial support to Rama Works M10-A macropad (#195)
* Add Vial support to Rama Works M10-A macropad (#2) * Updating M10-A rules.mk per reviewer request * Update vial.json added newline at end of file
This commit is contained in:
parent
9ad1253031
commit
6c79755161
5 changed files with 108 additions and 1 deletions
|
@ -25,7 +25,7 @@
|
||||||
#define PRODUCT_ID 0x00AA // 10-A
|
#define PRODUCT_ID 0x00AA // 10-A
|
||||||
#define DEVICE_VER 0x0001
|
#define DEVICE_VER 0x0001
|
||||||
#define MANUFACTURER RAMA WORKS
|
#define MANUFACTURER RAMA WORKS
|
||||||
#define PRODUCT RAMA WORKS M10-A
|
#define PRODUCT M10-A
|
||||||
|
|
||||||
/* key matrix size */
|
/* key matrix size */
|
||||||
#define MATRIX_ROWS 4
|
#define MATRIX_ROWS 4
|
||||||
|
|
9
keyboards/m10a/keymaps/vial/config.h
Normal file
9
keyboards/m10a/keymaps/vial/config.h
Normal file
|
@ -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
|
60
keyboards/m10a/keymaps/vial/keymap.c
Normal file
60
keyboards/m10a/keymaps/vial/keymap.c
Normal file
|
@ -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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#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
|
||||||
|
}
|
5
keyboards/m10a/keymaps/vial/rules.mk
Normal file
5
keyboards/m10a/keymaps/vial/rules.mk
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
VIA_ENABLE = yes
|
||||||
|
VIAL_ENABLE = yes
|
||||||
|
LTO_ENABLE = yes
|
||||||
|
BACKLIGHT_ENABLE = yes
|
||||||
|
MOUSEKEY_ENABLE = no
|
33
keyboards/m10a/keymaps/vial/vial.json
Normal file
33
keyboards/m10a/keymaps/vial/vial.json
Normal file
|
@ -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"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue