Always reset to known good defaults

This commit is contained in:
Daniel Flanagan 2024-06-27 12:46:24 -05:00
parent 7f46b4df9f
commit 420c082205
2 changed files with 7 additions and 3 deletions

View file

@ -1,7 +1,6 @@
#define TAPPING_TERM 150
// #define PERMISSIVE_HOLD
#define HOLD_ON_OTHER_KEY_PRESS
#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_RAINBOW_MOOD+1
#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_UP_DOWN // Sets the default mode, if none has been set
#define SPLIT_LAYER_STATE_ENABLE
#define SPLIT_LED_STATE_ENABLE

View file

@ -71,13 +71,18 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[LC] = LAYOUT(
QK_BOOT, _______, _______, _______, _______, RGB_TOG, _______, _______, _______, _______, _______, QK_BOOT,
_______, _______, _______, _______, _______, RGB_MOD, _______, _______, _______, _______, _______, _______,
QK_RBT, _______, _______, _______, _______, RGB_MOD, _______, _______, _______, _______, _______, QK_RBT,
_______, _______, _______, RGB_HUI, RGB_SAI, RGB_VAI, _______, _______, _______, _______, _______, _______,
_______, _______, _______, RGB_HUD, RGB_SAD, RGB_VAD, _______, _______, _______, _______, _______, _______, _______, _______,
_______, DF(LQ), RGB_TOG, _______, DF(LG), DF(LRG)
)
};
void keyboard_post_init_user(void) {
set_single_persistent_default_layer(LQ);
rgblight_mode(RGB_MATRIX_STARTUP_MODE);
}
bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
uint8_t layer = get_highest_layer(layer_state | default_layer_state);