Migrate RGB Matrix config to info.json - RS (#22909)
This commit is contained in:
		
							parent
							
								
									de6ae3408c
								
							
						
					
					
						commit
						a90b45e832
					
				
					 72 changed files with 839 additions and 1201 deletions
				
			
		| 
						 | 
				
			
			@ -17,34 +17,7 @@
 | 
			
		|||
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#ifdef RGB_MATRIX_ENABLE
 | 
			
		||||
#    define RGB_MATRIX_LED_COUNT 84
 | 
			
		||||
#    define RGB_MATRIX_KEYPRESSES                                      // Reacts to keypresses
 | 
			
		||||
// #    define RGB_MATRIX_KEYRELEASES                                     // Reacts to keyreleases (instead of keypresses)
 | 
			
		||||
// #    define RGB_MATRIX_FRAMEBUFFER_EFFECTS                             // Enables framebuffer effects
 | 
			
		||||
#    define RGB_MATRIX_SLEEP                             // Turns off effects when suspended
 | 
			
		||||
// Limit brightness to support USB-A at 0.5 A
 | 
			
		||||
// TODO: Do this dynamically based on power source
 | 
			
		||||
#    define RGB_MATRIX_MAXIMUM_BRIGHTNESS 176                          // Limits maximum brightness of LEDs to 176 out of 255. If not defined, maximum brightness is set to 255
 | 
			
		||||
#    define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_RAINBOW_MOVING_CHEVRON  // Sets the default mode, if none has been set
 | 
			
		||||
#    define RGB_MATRIX_DEFAULT_HUE 142                                 // Sets the default hue value, if none has been set
 | 
			
		||||
#    define RGB_MATRIX_DEFAULT_SAT 255                                 // Sets the default saturation value, if none has been set
 | 
			
		||||
#    define RGB_MATRIX_DEFAULT_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS       // Sets the default brightness value, if none has been set
 | 
			
		||||
#    define RGB_MATRIX_DEFAULT_SPD 127                                 // Sets the default animation speed, if none has been set
 | 
			
		||||
#    define RGB_MATRIX_DISABLE_KEYCODES                                // Disables control of rgb matrix by keycodes (must use code functions to control the feature)
 | 
			
		||||
 | 
			
		||||
#    define ENABLE_RGB_MATRIX_CYCLE_ALL
 | 
			
		||||
#    define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
 | 
			
		||||
#    define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
 | 
			
		||||
#    define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
 | 
			
		||||
#    define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
 | 
			
		||||
#    define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
 | 
			
		||||
#    define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
 | 
			
		||||
#    define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
 | 
			
		||||
#    define ENABLE_RGB_MATRIX_RAINDROPS
 | 
			
		||||
#    define ENABLE_RGB_MATRIX_SPLASH
 | 
			
		||||
#    define ENABLE_RGB_MATRIX_MULTISPLASH
 | 
			
		||||
#endif  // RGB_MATRIX_ENABLE
 | 
			
		||||
#define RGB_MATRIX_DISABLE_KEYCODES // Disables control of rgb matrix by keycodes (must use code functions to control the feature)
 | 
			
		||||
 | 
			
		||||
// Mechanical locking support; use KC_LCAP, KC_LNUM, or KC_LSCR instead in keymap
 | 
			
		||||
#define LOCKING_SUPPORT_ENABLE
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -11,7 +11,28 @@
 | 
			
		|||
        "pin": "E2"
 | 
			
		||||
    },
 | 
			
		||||
    "rgb_matrix": {
 | 
			
		||||
        "driver": "ws2812"
 | 
			
		||||
        "animations": {
 | 
			
		||||
            "cycle_all": true,
 | 
			
		||||
            "cycle_left_right": true,
 | 
			
		||||
            "cycle_up_down": true,
 | 
			
		||||
            "cycle_out_in": true,
 | 
			
		||||
            "cycle_out_in_dual": true,
 | 
			
		||||
            "rainbow_moving_chevron": true,
 | 
			
		||||
            "cycle_pinwheel": true,
 | 
			
		||||
            "cycle_spiral": true,
 | 
			
		||||
            "raindrops": true,
 | 
			
		||||
            "splash": true,
 | 
			
		||||
            "multisplash": true
 | 
			
		||||
        },
 | 
			
		||||
        "default": {
 | 
			
		||||
            "animation": "rainbow_moving_chevron",
 | 
			
		||||
            "hue": 142,
 | 
			
		||||
            "sat": 255,
 | 
			
		||||
            "speed": 127
 | 
			
		||||
        },
 | 
			
		||||
        "driver": "ws2812",
 | 
			
		||||
        "max_brightness": 176,
 | 
			
		||||
        "sleep": true
 | 
			
		||||
    },
 | 
			
		||||
    "matrix_pins": {
 | 
			
		||||
        "cols": ["D7", "C7", "C6", "B6", "B5", "B4", "D6", "D4", "E6", "D5", "D3", "D2", "B7", "B0"],
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue