Rename CKLED2001 driver to SNLED27351 (#22071)
This commit is contained in:
		
							parent
							
								
									24a795d7a9
								
							
						
					
					
						commit
						c0f16be50f
					
				
					 259 changed files with 1726 additions and 1720 deletions
				
			
		| 
						 | 
				
			
			@ -17,15 +17,15 @@
 | 
			
		|||
#pragma once
 | 
			
		||||
 | 
			
		||||
/* RGB Matrix Driver Configuration */
 | 
			
		||||
#define CKLED2001_DRIVER_COUNT 2
 | 
			
		||||
#define DRIVER_ADDR_1 CKLED2001_I2C_ADDRESS_VDDIO
 | 
			
		||||
#define DRIVER_ADDR_2 CKLED2001_I2C_ADDRESS_GND
 | 
			
		||||
#define SNLED27351_DRIVER_COUNT 2
 | 
			
		||||
#define DRIVER_ADDR_1 SNLED27351_I2C_ADDRESS_VDDIO
 | 
			
		||||
#define DRIVER_ADDR_2 SNLED27351_I2C_ADDRESS_GND
 | 
			
		||||
#define DRIVER_1_LED_TOTAL 46
 | 
			
		||||
#define DRIVER_2_LED_TOTAL 38
 | 
			
		||||
#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
 | 
			
		||||
 | 
			
		||||
#define CKLED2001_PHASE_CHANNEL CKLED2001_MSKPHASE_9CHANNEL
 | 
			
		||||
#define CKLED2001_CURRENT_TUNE \
 | 
			
		||||
#define SNLED27351_PHASE_CHANNEL SNLED27351_MSKPHASE_9CHANNEL
 | 
			
		||||
#define SNLED27351_CURRENT_TUNE \
 | 
			
		||||
    { 0xA0, 0xA0, 0x48, 0xA0, 0xA0, 0x48, 0xA0, 0xA0, 0x48, 0xA0, 0xA0, 0x48 }
 | 
			
		||||
 | 
			
		||||
/* Disable RGB lighting when PC is in suspend */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -9,7 +9,7 @@
 | 
			
		|||
        "device_version": "1.0.0"
 | 
			
		||||
    },
 | 
			
		||||
    "rgb_matrix": {
 | 
			
		||||
        "driver": "ckled2001"
 | 
			
		||||
        "driver": "snled27351"
 | 
			
		||||
    },
 | 
			
		||||
    "matrix_pins": {
 | 
			
		||||
        "cols": ["A10", "A9", "A8", "B1", "B0", "A7", "A6", "A5", "A4", "A3", "A2", "A1", "A0", "C15", "C14"],
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -20,8 +20,8 @@
 | 
			
		|||
 | 
			
		||||
// clang-format off
 | 
			
		||||
 | 
			
		||||
const ckled2001_led PROGMEM g_ckled2001_leds[RGB_MATRIX_LED_COUNT] = {
 | 
			
		||||
/* Refer to CKLED2001 manual for these locations
 | 
			
		||||
const snled27351_led_t PROGMEM g_snled27351_leds[RGB_MATRIX_LED_COUNT] = {
 | 
			
		||||
/* Refer to SNLED27351 manual for these locations
 | 
			
		||||
 *   driver
 | 
			
		||||
 *   |  R location
 | 
			
		||||
 *   |  |       G location
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -17,13 +17,13 @@
 | 
			
		|||
#pragma once
 | 
			
		||||
 | 
			
		||||
/* LED Matrix Driver Configuration */
 | 
			
		||||
#define CKLED2001_DRIVER_COUNT 1
 | 
			
		||||
#define DRIVER_ADDR_1 CKLED2001_I2C_ADDRESS_GND
 | 
			
		||||
#define SNLED27351_DRIVER_COUNT 1
 | 
			
		||||
#define DRIVER_ADDR_1 SNLED27351_I2C_ADDRESS_GND
 | 
			
		||||
#define DRIVER_1_LED_TOTAL 84
 | 
			
		||||
#define LED_MATRIX_LED_COUNT DRIVER_1_LED_TOTAL
 | 
			
		||||
 | 
			
		||||
#define CKLED2001_PHASE_CHANNEL CKLED2001_MSKPHASE_6CHANNEL
 | 
			
		||||
#define CKLED2001_CURRENT_TUNE \
 | 
			
		||||
#define SNLED27351_PHASE_CHANNEL SNLED27351_MSKPHASE_6CHANNEL
 | 
			
		||||
#define SNLED27351_CURRENT_TUNE \
 | 
			
		||||
    { 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80 } // 250mA
 | 
			
		||||
    // { 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40 } // 127mA
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -9,7 +9,7 @@
 | 
			
		|||
        "device_version": "1.0.0"
 | 
			
		||||
    },
 | 
			
		||||
    "led_matrix": {
 | 
			
		||||
        "driver": "ckled2001"
 | 
			
		||||
        "driver": "snled27351"
 | 
			
		||||
    },
 | 
			
		||||
    "matrix_pins": {
 | 
			
		||||
        "cols": ["A10", "A9", "A8", "B1", "B0", "A7", "A6", "A5", "A4", "A3", "A2", "A1", "A0", "C15", "C14"],
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -20,8 +20,8 @@
 | 
			
		|||
 | 
			
		||||
// clang-format off
 | 
			
		||||
 | 
			
		||||
const ckled2001_led PROGMEM g_ckled2001_leds[LED_MATRIX_LED_COUNT] = {
 | 
			
		||||
/* Refer to CKLED2001 manual for these locations
 | 
			
		||||
const snled27351_led_t PROGMEM g_snled27351_leds[LED_MATRIX_LED_COUNT] = {
 | 
			
		||||
/* Refer to SNLED27351 manual for these locations
 | 
			
		||||
 *   driver
 | 
			
		||||
 *   |  LED address
 | 
			
		||||
 *   |  |   */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue