[Keymap] Reorganization, cleanup and readmes for drashna code (#15617)
This commit is contained in:
		
							parent
							
								
									1a8a842cfb
								
							
						
					
					
						commit
						c4551d7ef1
					
				
					 64 changed files with 1291 additions and 1163 deletions
				
			
		| 
						 | 
				
			
			@ -15,3 +15,8 @@
 | 
			
		|||
 */
 | 
			
		||||
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#define RGBLIGHT_EFFECT_KNIGHT_LED_NUM 12
 | 
			
		||||
 | 
			
		||||
#undef RGB_MATRIX_MAXIMUM_BRIGHTNESS
 | 
			
		||||
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -126,45 +126,12 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
 | 
			
		|||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
void rgb_matrix_indicators_user(void) {}
 | 
			
		||||
 | 
			
		||||
void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
 | 
			
		||||
bool rgb_matrix_indicators_advanced_keymap(uint8_t led_min, uint8_t led_max) {
 | 
			
		||||
    uint8_t this_mod = get_mods();
 | 
			
		||||
    uint8_t this_led = host_keyboard_leds();
 | 
			
		||||
    uint8_t this_osm = get_oneshot_mods();
 | 
			
		||||
#define THUMB_LED                                   6
 | 
			
		||||
#define RGB_MATRIX_INDICATOR_SET_COLOR_wrapper(...) RGB_MATRIX_INDICATOR_SET_COLOR(__VA_ARGS__)
 | 
			
		||||
    if (!userspace_config.rgb_layer_change) {
 | 
			
		||||
        switch (get_highest_layer(layer_state | default_layer_state)) {
 | 
			
		||||
            case _GAMEPAD:
 | 
			
		||||
                rgb_matrix_layer_helper(HSV_ORANGE, 1, rgb_matrix_config.speed, LED_FLAG_MODIFIER, led_min, led_max);
 | 
			
		||||
                break;
 | 
			
		||||
            case _DIABLO:
 | 
			
		||||
                rgb_matrix_layer_helper(HSV_RED, 1, rgb_matrix_config.speed * 8, LED_FLAG_MODIFIER, led_min, led_max);
 | 
			
		||||
                break;
 | 
			
		||||
            case _RAISE:
 | 
			
		||||
                rgb_matrix_layer_helper(HSV_YELLOW, 1, rgb_matrix_config.speed, LED_FLAG_MODIFIER, led_min, led_max);
 | 
			
		||||
                break;
 | 
			
		||||
            case _LOWER:
 | 
			
		||||
                rgb_matrix_layer_helper(HSV_GREEN, 1, rgb_matrix_config.speed, LED_FLAG_MODIFIER, led_min, led_max);
 | 
			
		||||
                break;
 | 
			
		||||
            case _ADJUST:
 | 
			
		||||
                rgb_matrix_layer_helper(HSV_RED, 1, rgb_matrix_config.speed, LED_FLAG_MODIFIER, led_min, led_max);
 | 
			
		||||
                break;
 | 
			
		||||
            case _DEFAULT_LAYER_1:
 | 
			
		||||
                rgb_matrix_layer_helper(DEFAULT_LAYER_1_HSV, 0, rgb_matrix_config.speed, LED_FLAG_MODIFIER, led_min, led_max);
 | 
			
		||||
                break;
 | 
			
		||||
            case _DEFAULT_LAYER_2:
 | 
			
		||||
                rgb_matrix_layer_helper(DEFAULT_LAYER_2_HSV, 0, rgb_matrix_config.speed, LED_FLAG_MODIFIER, led_min, led_max);
 | 
			
		||||
                break;
 | 
			
		||||
            case _DEFAULT_LAYER_3:
 | 
			
		||||
                rgb_matrix_layer_helper(DEFAULT_LAYER_3_HSV, 0, rgb_matrix_config.speed, LED_FLAG_MODIFIER, led_min, led_max);
 | 
			
		||||
                break;
 | 
			
		||||
            case _DEFAULT_LAYER_4:
 | 
			
		||||
                rgb_matrix_layer_helper(DEFAULT_LAYER_4_HSV, 0, rgb_matrix_config.speed, LED_FLAG_MODIFIER, led_min, led_max);
 | 
			
		||||
                break;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    extern bool host_driver_disabled;
 | 
			
		||||
    if (host_driver_disabled) {
 | 
			
		||||
| 
						 | 
				
			
			@ -214,4 +181,6 @@ void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
 | 
			
		|||
        RGB_MATRIX_INDICATOR_SET_COLOR(4, 0xFF, 0xFF, 0x00);
 | 
			
		||||
        RGB_MATRIX_INDICATOR_SET_COLOR(5, 0xFF, 0xFF, 0x00);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return true;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,10 @@
 | 
			
		|||
BOOTMAGIC_ENABLE = yes      # Enable Bootmagic Lite
 | 
			
		||||
EXTRAKEY_ENABLE             = yes
 | 
			
		||||
MOUSEKEY_ENABLE             = yes
 | 
			
		||||
TAP_DANCE_ENABLE            = no
 | 
			
		||||
NKRO_ENABLE                 = yes
 | 
			
		||||
RGBLIGHT_STARTUP_ANIMATION  = yes
 | 
			
		||||
ENCODER_MAP_ENABLE          = yes
 | 
			
		||||
 | 
			
		||||
AUTOCORRECTION_ENABLE = no
 | 
			
		||||
CUSTOM_UNICODE_ENABLE = no
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue