Add via support for rart75 (#9746)

* Update info.json

* Create rules.mk

* Create keymap.c
This commit is contained in:
Alabahuy 2020-07-22 04:31:16 +07:00 committed by GitHub
parent 43b21cffe0
commit 8c8a320e92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 57 additions and 4 deletions

View File

@ -58,7 +58,7 @@
{"label" : "Caps lock", "x":0, "y":3.25, "w":1.75},
{"label" : "A", "x":1.75, "y":3.25},
{"label" : "S", "x":1.75, "y":3.25},
{"label" : "S", "x":2.75, "y":3.25},
{"label" : "D", "x":3.75, "y":3.25},
{"label" : "F", "x":4.75, "y":3.25},
{"label" : "G", "x":5.75, "y":3.25},
@ -83,7 +83,7 @@
{"label" : ".", "x":10.25, "y":4.25},
{"label" : "/", "x":11.25, "y":4.25},
{"label" : "Shift", "x":12.25, "y":4.25, "w":1.75},
{"label" : "Up", "x":14, "y":4.5},
{"label" : "Up", "x":14.25, "y":4.5},
{"label" : "End", "x":15.5, "y":4.25},
{"label" : "Ctrl", "x":0, "y":5.25, "w":1.25},
@ -153,7 +153,7 @@
{"label" : "Caps lock", "x":0, "y":3.25, "w":1.75},
{"label" : "A", "x":1.75, "y":3.25},
{"label" : "S", "x":1.75, "y":3.25},
{"label" : "S", "x":2.75, "y":3.25},
{"label" : "D", "x":3.75, "y":3.25},
{"label" : "F", "x":4.75, "y":3.25},
{"label" : "G", "x":5.75, "y":3.25},
@ -178,7 +178,7 @@
{"label" : ".", "x":10.25, "y":4.25},
{"label" : "/", "x":11.25, "y":4.25},
{"label" : "Shift", "x":12.25, "y":4.25, "w":1.75},
{"label" : "Up", "x":14, "y":4.5},
{"label" : "Up", "x":14.25, "y":4.5},
{"label" : "End", "x":15.5, "y":4.25},
{"label" : "Ctrl", "x":0, "y":5.25, "w":1.25},

View File

@ -0,0 +1,51 @@
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_all(
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_INS, KC_MPLY,
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_DEL, KC_BSPC, KC_HOME,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_END,
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGUP,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN,
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
),
[1] = LAYOUT_all(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET, _______,
_______, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, BL_DEC, BL_TOGG, BL_INC, BL_STEP, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),
[2] = LAYOUT_all(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),
[3] = LAYOUT_all(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
)
};
void encoder_update_user(uint8_t index, bool clockwise) {
if (index == 0) { /* First encoder */
if (clockwise) {
tap_code(KC_VOLU);
} else {
tap_code(KC_VOLD);
}
}
}

View File

@ -0,0 +1,2 @@
VIA_ENABLE = yes
LTO_ENABLE = yes