Add _flush() functions to LED drivers (#22308)
				
					
				
			This commit is contained in:
		
							parent
							
								
									1e9b299fb0
								
							
						
					
					
						commit
						cf7d3435d7
					
				
					 72 changed files with 346 additions and 319 deletions
				
			
		| 
						 | 
				
			
			@ -36,9 +36,9 @@
 | 
			
		|||
#define WEAR_LEVELING_BACKING_SIZE (8 * 1024)
 | 
			
		||||
 | 
			
		||||
/* I2C Config for LED Driver */
 | 
			
		||||
#define DRIVER_COUNT 2
 | 
			
		||||
#define DRIVER_ADDR_1 0b1110100
 | 
			
		||||
#define DRIVER_ADDR_2 0b1110111
 | 
			
		||||
#define SNLED27351_DRIVER_COUNT 2
 | 
			
		||||
#define SNLED27351_I2C_ADDRESS_1 SNLED27351_I2C_ADDRESS_GND
 | 
			
		||||
#define SNLED27351_I2C_ADDRESS_2 SNLED27351_I2C_ADDRESS_VDDIO
 | 
			
		||||
#define I2C1_OPMODE OPMODE_I2C
 | 
			
		||||
#define I2C1_CLOCK_SPEED 400000 /* 400000 */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -31,7 +31,7 @@
 | 
			
		|||
        "caps_lock": "A15"
 | 
			
		||||
    }, 
 | 
			
		||||
    "rgb_matrix": {
 | 
			
		||||
        "driver": "ckled2001",
 | 
			
		||||
        "driver": "snled27351",
 | 
			
		||||
        "max_brightness": 160,
 | 
			
		||||
        "animations": {
 | 
			
		||||
            "breathing": true,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -17,7 +17,7 @@
 | 
			
		|||
#include "quantum.h"
 | 
			
		||||
// clang-format off
 | 
			
		||||
#ifdef RGB_MATRIX_ENABLE
 | 
			
		||||
const ckled2001_led PROGMEM g_ckled2001_leds[RGB_MATRIX_LED_COUNT] = {
 | 
			
		||||
const snled27351_led_t PROGMEM g_snled27351_leds[RGB_MATRIX_LED_COUNT] = {
 | 
			
		||||
/* Refer to IS31 manual for these locations
 | 
			
		||||
 *   driver
 | 
			
		||||
 *   |  R location
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue