Added comments
parent
7a5693b2de
commit
05adb5053f
|
@ -2,6 +2,8 @@
|
||||||
#include "layers.h"
|
#include "layers.h"
|
||||||
|
|
||||||
|
|
||||||
|
// Define custom keys
|
||||||
|
// (Must be done BEFORE keymaps)
|
||||||
enum custom_keycodes {
|
enum custom_keycodes {
|
||||||
RGB_SLD = EZ_SAFE_RANGE,
|
RGB_SLD = EZ_SAFE_RANGE,
|
||||||
HSV_136_138_245,
|
HSV_136_138_245,
|
||||||
|
@ -18,6 +20,8 @@ enum tap_dance_codes {
|
||||||
DANCE_0,
|
DANCE_0,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
// Assemble key and LED maps
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
[0] = LAYER_MAIN,
|
[0] = LAYER_MAIN,
|
||||||
[1] = LAYER_COLEMAK,
|
[1] = LAYER_COLEMAK,
|
||||||
|
@ -44,6 +48,7 @@ const uint8_t PROGMEM ledmap[][DRIVER_LED_TOTAL][3] = {
|
||||||
[10] = LAYER_RUSSIAN_SYMBOLS_LEDS
|
[10] = LAYER_RUSSIAN_SYMBOLS_LEDS
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
extern bool g_suspend_state;
|
extern bool g_suspend_state;
|
||||||
extern rgb_config_t rgb_matrix_config;
|
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();
|
ergodox_right_led_3_on();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 7:
|
case 8:
|
||||||
ergodox_right_led_1_on();
|
ergodox_right_led_1_on();
|
||||||
ergodox_right_led_2_on();
|
ergodox_right_led_2_on();
|
||||||
ergodox_right_led_3_on();
|
ergodox_right_led_3_on();
|
||||||
|
|
Loading…
Reference in New Issue