From 07d00723b2510f2a09000d0442ce7d60e3348604 Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Wed, 28 Sep 2022 19:18:52 -0600 Subject: [PATCH] Se agrega la configuracion led por matriz. --- config.h | 2 -- keymap.c | 54 ++++++++++++++++++++++++----------------------------- version.txt | 2 +- 3 files changed, 25 insertions(+), 33 deletions(-) diff --git a/config.h b/config.h index c08003f..8614764 100644 --- a/config.h +++ b/config.h @@ -115,6 +115,4 @@ along with this program. If not, see . // # define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH #endif -// #define LAYER_STATE_16BIT - #define OLED_FONT_H "keyboards/crkbd/lib/glcdfont.c" diff --git a/keymap.c b/keymap.c index b345ed8..0bfdbb9 100644 --- a/keymap.c +++ b/keymap.c @@ -161,9 +161,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { //,-----------------------------------------------------. ,-----------------------------------------------------. XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RGB_HUD, RGB_HUI, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| - XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RGB_RMOD, RGB_MOD, RGB_VAD, RGB_VAI, XXXXXXX, XXXXXXX, XXXXXXX, RGB_M_R, + XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RGB_RMOD, RGB_MOD, RGB_VAD, RGB_VAI, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, //|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------| - XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RGB_SAD, RGB_SAI, XXXXXXX, XXXXXXX, XXXXXXX, RGB_M_P, + XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RGB_SAD, RGB_SAI, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, //|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------| TT(4), XXXXXXX, KC_SPC, KC_SPC, RGB_TOG, XXXXXXX //`--------------------------' `--------------------------' @@ -279,32 +279,26 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { #endif // OLED_ENABLE // RGB LAYER CONFIGURATION -// LENGHTH OF LEDS -const int firstLedLeft = 1; -const int lastLedLeft = 26; -const int firstLedRight = 27; -const int lastLedRight = 53; - -void rgb_matrix_indicators_user(void) { - #ifdef RGB_MATRIX_ENABLE - switch (biton32(layer_state)) { - case 1: - rgb_matrix_set_color_all(RGB_AZURE); - break; - case 2: - rgb_matrix_set_color_all(RGB_YELLOW); - break; - //case 3: - //rgb_matrix_set_color_all(29, 241, 161); - //break; - default: - if (isWindows == false){ - rgb_matrix_set_color(lastLedLeft, 255, 166, 1); - } - if (host_keyboard_leds() & (1<