|
|
|
@ -10,7 +10,7 @@ extern bool g_suspend_state;
|
|
|
|
|
#define _LAYER7 7
|
|
|
|
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|
|
|
|
[_LAYER0] = LAYOUT( /* Base */
|
|
|
|
|
RESET, RGB_MOD, 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_GESC, 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_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_BSLASH,\
|
|
|
|
|
CTL_T(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_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, RSFT_T(KC_SLSH), KC_UP, LT(2, KC_DEL),\
|
|
|
|
@ -60,25 +60,15 @@ void rgb_matrix_indicators_user(void) {
|
|
|
|
|
if (!g_suspend_state) {
|
|
|
|
|
switch (biton32(layer_state)) {
|
|
|
|
|
case _LAYER1:
|
|
|
|
|
rgb_matrix_layer_helper(0xFF, 0x00, 0x00, false); break;
|
|
|
|
|
rgb_matrix_layer_helper(0xFF, 0x00, 0x00, false);
|
|
|
|
|
break;
|
|
|
|
|
case _LAYER2:
|
|
|
|
|
rgb_matrix_layer_helper(0x00, 0xFF, 0x00, false); break;
|
|
|
|
|
case _LAYER4:
|
|
|
|
|
rgb_matrix_layer_helper(0xFF, 0xFF, 0x00, false); break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if ( this_led & (1<<USB_LED_CAPS_LOCK)) {
|
|
|
|
|
rgb_matrix_set_color(40, 0xFF, 0xFF, 0xFF);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
switch (biton32(layer_state)) {
|
|
|
|
|
rgb_matrix_layer_helper(0x00, 0xFF, 0x00, false);
|
|
|
|
|
break;
|
|
|
|
|
case _LAYER3:
|
|
|
|
|
if ( this_led & (1<<USB_LED_NUM_LOCK))
|
|
|
|
|
{
|
|
|
|
|
if ( this_led & (1<<USB_LED_NUM_LOCK)) {
|
|
|
|
|
rgb_matrix_set_color(13, 0xFF, 0x00, 0x00);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
} else {
|
|
|
|
|
rgb_matrix_set_color(13, 0x00, 0x00, 0x00);
|
|
|
|
|
}
|
|
|
|
|
rgb_matrix_set_color(0, 0x00, 0xFF, 0x00);
|
|
|
|
@ -145,7 +135,15 @@ void rgb_matrix_indicators_user(void) {
|
|
|
|
|
rgb_matrix_set_color(61, 0xFF, 0xFF, 0x00);
|
|
|
|
|
rgb_matrix_set_color(62, 0x00, 0x00, 0x00);
|
|
|
|
|
break;
|
|
|
|
|
case _LAYER4:
|
|
|
|
|
rgb_matrix_layer_helper(0xFF, 0xFF, 0x00, false);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if ( this_led & (1<<USB_LED_CAPS_LOCK)) {
|
|
|
|
|
rgb_matrix_set_color(40, 0xFF, 0xFF, 0xFF);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|