Skip to content

Commit

Permalink
Add Vial support to Rama Works M10-A macropad (qmk#195)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
ardent-handsaw authored Jul 9, 2022
1 parent 9ad1253 commit 6c79755
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 1 deletion.
2 changes: 1 addition & 1 deletion keyboards/m10a/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions keyboards/m10a/keymaps/vial/config.h
Original file line number Diff line number Diff line change
@@ -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 changes: 60 additions & 0 deletions keyboards/m10a/keymaps/vial/keymap.c
Original file line number Diff line number Diff line change
@@ -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 changes: 5 additions & 0 deletions keyboards/m10a/keymaps/vial/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
VIA_ENABLE = yes
VIAL_ENABLE = yes
LTO_ENABLE = yes
BACKLIGHT_ENABLE = yes
MOUSEKEY_ENABLE = no
33 changes: 33 additions & 0 deletions keyboards/m10a/keymaps/vial/vial.json
Original file line number Diff line number Diff line change
@@ -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"
]
]
}
}

0 comments on commit 6c79755

Please sign in to comment.