forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Vial support to Rama Works M10-A macropad (qmk#195)
* Add Vial support to Rama Works M10-A macropad (qmk#2) * Updating M10-A rules.mk per reviewer request * Update vial.json added newline at end of file
- Loading branch information
1 parent
9ad1253
commit 6c79755
Showing
5 changed files
with
108 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
] | ||
} | ||
} |