From 05adb5053f7cccdb68f45734e92cf1cbf78b62fd Mon Sep 17 00:00:00 2001 From: Mark Date: Sun, 6 Feb 2022 13:43:24 -0800 Subject: [PATCH] Added comments --- keymaps/default/keymap.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/keymaps/default/keymap.c b/keymaps/default/keymap.c index 13cff8e..594a9c7 100644 --- a/keymaps/default/keymap.c +++ b/keymaps/default/keymap.c @@ -2,6 +2,8 @@ #include "layers.h" +// Define custom keys +// (Must be done BEFORE keymaps) enum custom_keycodes { RGB_SLD = EZ_SAFE_RANGE, HSV_136_138_245, @@ -18,6 +20,8 @@ enum tap_dance_codes { DANCE_0, }; + +// Assemble key and LED maps const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { [0] = LAYER_MAIN, [1] = LAYER_COLEMAK, @@ -44,6 +48,7 @@ const uint8_t PROGMEM ledmap[][DRIVER_LED_TOTAL][3] = { [10] = LAYER_RUSSIAN_SYMBOLS_LEDS }; + extern bool g_suspend_state; extern rgb_config_t rgb_matrix_config; @@ -217,7 +222,7 @@ uint32_t layer_state_set_user(uint32_t state) { ergodox_right_led_3_on(); break; - case 7: + case 8: ergodox_right_led_1_on(); ergodox_right_led_2_on(); ergodox_right_led_3_on();