keyboard stuff
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Patch up issue when compile with APA102 driver (#24800)

authored by

HorrorTroll and committed by
GitHub
c1565beb 8247f9e1

+2 -2
+1 -1
drivers/led/apa102.c
··· 122 122 gpio_set_pin_output(APA102_CI_PIN); 123 123 } 124 124 125 - void apa102_set_color(uint16_t index, uint8_t red, uint8_t green, uint8_t blue) { 125 + void apa102_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) { 126 126 apa102_leds[index].r = red; 127 127 apa102_leds[index].g = green; 128 128 apa102_leds[index].b = blue;
+1 -1
drivers/led/apa102.h
··· 32 32 #define APA102_MAX_BRIGHTNESS 31 33 33 34 34 void apa102_init(void); 35 - void apa102_set_color(uint16_t index, uint8_t red, uint8_t green, uint8_t blue); 35 + void apa102_set_color(int index, uint8_t red, uint8_t green, uint8_t blue); 36 36 void apa102_set_color_all(uint8_t red, uint8_t green, uint8_t blue); 37 37 void apa102_flush(void); 38 38