Patch up issue when compile with APA102 driver (#24800)
This commit is contained in:
		
							parent
							
								
									8247f9e114
								
							
						
					
					
						commit
						c1565bebce
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -122,7 +122,7 @@ void apa102_init(void) {
 | 
				
			||||||
    gpio_set_pin_output(APA102_CI_PIN);
 | 
					    gpio_set_pin_output(APA102_CI_PIN);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void apa102_set_color(uint16_t index, uint8_t red, uint8_t green, uint8_t blue) {
 | 
					void apa102_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) {
 | 
				
			||||||
    apa102_leds[index].r = red;
 | 
					    apa102_leds[index].r = red;
 | 
				
			||||||
    apa102_leds[index].g = green;
 | 
					    apa102_leds[index].g = green;
 | 
				
			||||||
    apa102_leds[index].b = blue;
 | 
					    apa102_leds[index].b = blue;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -32,7 +32,7 @@
 | 
				
			||||||
#define APA102_MAX_BRIGHTNESS 31
 | 
					#define APA102_MAX_BRIGHTNESS 31
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void apa102_init(void);
 | 
					void apa102_init(void);
 | 
				
			||||||
void apa102_set_color(uint16_t index, uint8_t red, uint8_t green, uint8_t blue);
 | 
					void apa102_set_color(int index, uint8_t red, uint8_t green, uint8_t blue);
 | 
				
			||||||
void apa102_set_color_all(uint8_t red, uint8_t green, uint8_t blue);
 | 
					void apa102_set_color_all(uint8_t red, uint8_t green, uint8_t blue);
 | 
				
			||||||
void apa102_flush(void);
 | 
					void apa102_flush(void);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue