2015-10-30 05:49:11 +01:00
|
|
|
#include "atomic.h"
|
|
|
|
|
2016-04-13 21:43:09 +02:00
|
|
|
#define _QW 0
|
|
|
|
#define _CM 1
|
|
|
|
#define _DV 2
|
|
|
|
#define _LW 3
|
|
|
|
#define _RS 4
|
|
|
|
|
|
|
|
// ROW 1 OPTIONS
|
|
|
|
// .--------------------------------------------------------------------------------------------------------------------------------------.
|
|
|
|
// | | | | | | | | | | | | | | | |
|
|
|
|
// '--------------------------------------------------------------------------------------------------------------------------------------'
|
|
|
|
// .- 2u ------------.
|
|
|
|
// | X |
|
|
|
|
// '-----------------'
|
|
|
|
|
|
|
|
// ROW 2 OPTIONS
|
|
|
|
// .--------------------------------------------------------------------------------------------------------------------------------------.
|
|
|
|
// | | | | | | | | | | | | | | | |
|
|
|
|
// '--------------------------------------------------------------------------------------------------------------------------------------'
|
|
|
|
// .- 2u ------------. .- 2u ------------.
|
|
|
|
// | X | | X |
|
|
|
|
// '-----------------' '-----------------'
|
|
|
|
|
|
|
|
// ROW 3 OPTIONS
|
|
|
|
// .--------------------------------------------------------------------------------------------------------------------------------------.
|
|
|
|
// | | | | | | | | | | | | | | | |
|
|
|
|
// '--------------------------------------------------------------------------------------------------------------------------------------'
|
|
|
|
// .- 2u ------------. .- 2u ------------.
|
|
|
|
// | X | | X |
|
|
|
|
// '-----------------' '-----------------'
|
|
|
|
// .- 2u ------------.
|
|
|
|
// | X |
|
|
|
|
// '-----------------'
|
|
|
|
|
|
|
|
// ROW 4 OPTIONS
|
|
|
|
// .--------------------------------------------------------------------------------------------------------------------------------------.
|
|
|
|
// | | | | | | | | | | | | | | | |
|
|
|
|
// '--------------------------------------------------------------------------------------------------------------------------------------'
|
|
|
|
// .- 2u ------------.
|
|
|
|
// | X |
|
|
|
|
// '-----------------'
|
|
|
|
// .- 2u ------------. .- 2u ------------.
|
|
|
|
// | X | | X |
|
|
|
|
// '-----------------' '-----------------'
|
|
|
|
// .- 2u ------------.
|
|
|
|
// | X |
|
|
|
|
// '-----------------'
|
|
|
|
|
|
|
|
// ROW 5 OPTIONS
|
|
|
|
// .--------------------------------------------------------------------------------------------------------------------------------------.
|
|
|
|
// | | | | | | | | | | | | | | | |
|
|
|
|
// '--------------------------------------------------------------------------------------------------------------------------------------'
|
|
|
|
// .- 1.25u --+ 1.25u ------- 1.25u +--- 1.25u --- 2u -------------- 1.25u ---- 1.25u ------ 1.25u +---- 1.25u .
|
|
|
|
// | X | X | X | X | X | X | X | X | X |
|
|
|
|
// '-----------------------------------------------------------------------------------------------------------'
|
|
|
|
// .- 2u ------------.
|
|
|
|
// | X |
|
|
|
|
// '-----------------'
|
|
|
|
// .--------------------- 6.25u ----------------------------.
|
|
|
|
// | X |
|
|
|
|
// '--------------------------------------------------------'
|
|
|
|
// .----------------------- 6.25u ---------------------------- 1.25u ---- 1.25u ---- 1.25u ------ 1.25u +-- 1.25u --.
|
|
|
|
// | X | X | X | X | X | X |
|
|
|
|
// '----------------------------------------------------------------------------------------------------------------'
|
|
|
|
|
2015-10-30 05:49:11 +01:00
|
|
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
2016-04-13 21:43:09 +02:00
|
|
|
[_QW] = { /* Qwerty */
|
|
|
|
{ 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_BSPC, KC_DEL },
|
|
|
|
{ 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_DEL },
|
|
|
|
{ KC_ESC, 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_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_RSFT, KC_UP, KC_PGDN },
|
|
|
|
{ BL_STEP, KC_LCTL, KC_LALT, KC_LGUI, KC_LGUI, KC_SPC, KC_SPC, KC_RGUI, KC_RGUI, KC_RALT, KC_RCTL, BL_STEP, KC_LEFT, KC_DOWN, KC_RGHT },
|
2015-10-30 05:49:11 +01:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
const uint16_t PROGMEM fn_actions[] = {
|
|
|
|
[1] = ACTION_LAYER_MOMENTARY(2), // to RAISE
|
|
|
|
[2] = ACTION_LAYER_MOMENTARY(3), // to LOWER
|
|
|
|
|
|
|
|
[3] = ACTION_DEFAULT_LAYER_SET(0),
|
|
|
|
[4] = ACTION_DEFAULT_LAYER_SET(1),
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
|
|
|
|
{
|
|
|
|
// MACRODOWN only works in this function
|
|
|
|
switch(id) {
|
|
|
|
case 0:
|
|
|
|
return MACRODOWN(TYPE(KC_T), END);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
return MACRO_NONE;
|
|
|
|
};
|