[Keyboard] Add RGB matrix support for Kyria (#12789)
Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: filterpaper <filterpaper@localhost>
This commit is contained in:
		
							parent
							
								
									3affdcb45b
								
							
						
					
					
						commit
						be34fdea4b
					
				
					 3 changed files with 38 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -30,6 +30,31 @@ __attribute__ ((weak)) const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATR
 | 
			
		|||
// clang-format on
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifdef RGB_MATRIX_ENABLE
 | 
			
		||||
/* Map physical under glow LEDs for RGB matrix support */
 | 
			
		||||
led_config_t g_led_config = { {
 | 
			
		||||
    // Key Matrix to LED Index
 | 
			
		||||
    { NO_LED, NO_LED, NO_LED, 4,      NO_LED, NO_LED, 5,      9     },
 | 
			
		||||
    { NO_LED, NO_LED, 3,      NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
 | 
			
		||||
    { NO_LED, 0,      NO_LED, NO_LED, NO_LED, 7,      6,      8      },
 | 
			
		||||
    { NO_LED, NO_LED, 1,      2,      NO_LED, NO_LED, NO_LED, NO_LED },
 | 
			
		||||
    { NO_LED, NO_LED, NO_LED, 14,     NO_LED, NO_LED, 15,     19     },
 | 
			
		||||
    { NO_LED, NO_LED, 13,     NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
 | 
			
		||||
    { NO_LED, 10,     NO_LED, NO_LED, NO_LED, 17,     16,     18     },
 | 
			
		||||
    { NO_LED, NO_LED, 11,     12,     NO_LED, NO_LED, NO_LED, NO_LED },
 | 
			
		||||
}, {
 | 
			
		||||
    // LED Index to Physical Position
 | 
			
		||||
    {91,40}, {77,56}, {63,56}, {77,24}, {63,8}, {21,8}, {21,40}, {35,40}, {7,40}, {7,8},
 | 
			
		||||
    {133,40}, {147,56}, {161,56}, {147,24}, {161,8}, {203,8}, {203,40}, {189,40}, {217,40}, {217,8}
 | 
			
		||||
}, {
 | 
			
		||||
    // LED Index to Flag
 | 
			
		||||
    LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL,
 | 
			
		||||
    LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL,
 | 
			
		||||
    LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL,
 | 
			
		||||
    LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL
 | 
			
		||||
} };
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifdef OLED_DRIVER_ENABLE
 | 
			
		||||
__attribute__((weak)) oled_rotation_t oled_init_user(oled_rotation_t rotation) { return OLED_ROTATION_180; }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue