Relocate LED driver init code (#22365)
This commit is contained in:
		
							parent
							
								
									eac8e67888
								
							
						
					
					
						commit
						b52aca0af8
					
				
					 100 changed files with 795 additions and 798 deletions
				
			
		| 
						 | 
				
			
			@ -85,8 +85,9 @@ typedef struct is31fl3733_led_t {
 | 
			
		|||
    uint8_t v;
 | 
			
		||||
} __attribute__((packed)) is31fl3733_led_t;
 | 
			
		||||
 | 
			
		||||
extern const is31fl3733_led_t PROGMEM g_is31fl3733_leds[LED_MATRIX_LED_COUNT];
 | 
			
		||||
extern const is31fl3733_led_t PROGMEM g_is31fl3733_leds[IS31FL3733_LED_COUNT];
 | 
			
		||||
 | 
			
		||||
void is31fl3733_init_drivers(void);
 | 
			
		||||
void is31fl3733_init(uint8_t addr, uint8_t sync);
 | 
			
		||||
bool is31fl3733_write_register(uint8_t addr, uint8_t reg, uint8_t data);
 | 
			
		||||
bool is31fl3733_write_pwm_buffer(uint8_t addr, uint8_t *pwm_buffer);
 | 
			
		||||
| 
						 | 
				
			
			@ -119,6 +120,10 @@ void is31fl3733_flush(void);
 | 
			
		|||
#define IS31FL3733_PWM_FREQUENCY_2K1_HZ 0b011
 | 
			
		||||
#define IS31FL3733_PWM_FREQUENCY_1K05_HZ 0b100
 | 
			
		||||
 | 
			
		||||
#define IS31FL3733_SYNC_NONE 0b00
 | 
			
		||||
#define IS31FL3733_SYNC_MASTER 0b01
 | 
			
		||||
#define IS31FL3733_SYNC_SLAVE 0b10
 | 
			
		||||
 | 
			
		||||
#define A_1 0x00
 | 
			
		||||
#define A_2 0x01
 | 
			
		||||
#define A_3 0x02
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue