2018-05-31 15:30:05 +00:00
|
|
|
#include QMK_KEYBOARD_H
|
|
|
|
#include "mtdjr.h"
|
2018-05-26 18:06:08 +00:00
|
|
|
|
2018-05-31 15:30:05 +00:00
|
|
|
#define KC_LOCK TD(TD_ENDLOCK)
|
2018-05-26 18:06:08 +00:00
|
|
|
|
|
|
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|
|
|
|
|
|
|
[_QWERTY] = KC_KEYMAP(
|
|
|
|
// .--------------------------------------------------------------------------.
|
2018-05-31 15:30:05 +00:00
|
|
|
EXC, 1 , 2 , 3 , 4 , 5 ,PGUP,xxxx,PGDN, 6 , 7 , 8 , 9 , 0 ,BSPC,
|
2018-05-26 18:06:08 +00:00
|
|
|
// |----+----+----+----+----+----+----+----+----+----+----+----+----+----+----|
|
|
|
|
TAB, Q , W , E , R , T , INS,BSLS, DEL, Y , U , I , O , P ,QUOT,
|
|
|
|
// |----+----+----+----+----+----+----+----+----+----+----+----+----+----+----|
|
|
|
|
LCTL, A , S , D , F , G ,HOME,PLUS,LOCK, H , J , K , L ,SCLN, ENT,
|
|
|
|
// |----+----+----+----+----+----+----+----+----+----+----+----+----+----+----|
|
|
|
|
LSFT, Z , X , C , V , B ,LBRC,MINS,RBRC, N , M ,COMM, DOT,SLSH,RSFT,
|
|
|
|
// |----+----+----+----+----+----+----+----+----+----+----+----+----+----+----|
|
2018-05-31 15:30:05 +00:00
|
|
|
LOWR,LCTL,LALT,LGUI,xxxx, SPC, SPC,RASE,SPC, SPC,xxxx,LEFT,DOWN,UP ,RGHT
|
2018-05-26 18:06:08 +00:00
|
|
|
// '----+----+----+----+----+----+----+----+----+----+----+----+----+----+----'
|
|
|
|
),
|
|
|
|
|
|
|
|
[_LOWER] = KC_KEYMAP(
|
|
|
|
// .--------------------------------------------------------------------------.
|
2018-05-31 15:30:05 +00:00
|
|
|
xxxx, F1, F2, F3, F4, F5, F6,xxxx, F7, F8, F9, F10, F11, F12, DEL,
|
2018-05-26 18:06:08 +00:00
|
|
|
// |----+----+----+----+----+----+----+----+----+----+----+----+----+----+----|
|
2018-05-31 15:30:05 +00:00
|
|
|
xxxx,ROOT,PPLY,PSEF,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,
|
2018-05-26 18:06:08 +00:00
|
|
|
// |----+----+----+----+----+----+----+----+----+----+----+----+----+----+----|
|
2018-05-31 15:30:05 +00:00
|
|
|
xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,
|
2018-05-26 18:06:08 +00:00
|
|
|
// |----+----+----+----+----+----+----+----+----+----+----+----+----+----+----|
|
2018-05-31 15:30:05 +00:00
|
|
|
xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,MUTE,
|
2018-05-26 18:06:08 +00:00
|
|
|
// |----+----+----+----+----+----+----+----+----+----+----+----+----+----+----|
|
2018-05-31 15:30:05 +00:00
|
|
|
,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx, ,xxxx,MPLY,xxxx,MPRV,VOLD,VOLU,MNXT
|
2018-05-26 18:06:08 +00:00
|
|
|
// '----+----+----+----+----+----+----+----+----+----+----+----+----+----+----'
|
|
|
|
),
|
|
|
|
|
|
|
|
[_RAISE] = KC_KEYMAP(
|
|
|
|
// .--------------------------------------------------------------------------.
|
2018-05-31 15:30:05 +00:00
|
|
|
xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,
|
2018-05-26 18:06:08 +00:00
|
|
|
// |----+----+----+----+----+----+----+----+----+----+----+----+----+----+----|
|
2018-05-31 15:30:05 +00:00
|
|
|
xxxx,xxxx,xxxx,xxxx, RST,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,
|
2018-05-26 18:06:08 +00:00
|
|
|
// |----+----+----+----+----+----+----+----+----+----+----+----+----+----+----|
|
2018-05-31 15:30:05 +00:00
|
|
|
CAPS,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx, BLI,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx,
|
2018-05-26 18:06:08 +00:00
|
|
|
// |----+----+----+----+----+----+----+----+----+----+----+----+----+----+----|
|
2018-05-31 15:30:05 +00:00
|
|
|
RGB,RHUI,RHUD,RSAI,RSAD,RVAI,RVAD, BLD,xxxx,xxxx,xxxx,xxxx,BTN1,BTN2,xxxx,
|
2018-05-26 18:06:08 +00:00
|
|
|
// |----+----+----+----+----+----+----+----+----+----+----+----+----+----+----|
|
2018-05-31 15:30:05 +00:00
|
|
|
,xxxx,xxxx,xxxx,xxxx,xxxx,xxxx, ,xxxx,xxxx,xxxx,MS_L,MS_D,MS_U,MS_R
|
2018-05-26 18:06:08 +00:00
|
|
|
// '----+----+----+----+----+----+----+----+----+----+----+----+----+----+----'
|
|
|
|
)
|
|
|
|
};
|
|
|
|
|
|
|
|
void led_set_user(uint8_t usb_led) {
|
|
|
|
if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
|
|
|
|
capslock_led_on();
|
|
|
|
} else {
|
|
|
|
capslock_led_off();
|
|
|
|
}
|
|
|
|
}
|