fix avs led animation issue
This commit is contained in:
parent
8d017ba460
commit
8022d4832c
|
@ -27,9 +27,10 @@ int avsux_timer_flag = 0;
|
||||||
|
|
||||||
static void avsux_parse_rgb(const u32 rgb, struct led_rgb_colors *colors)
|
static void avsux_parse_rgb(const u32 rgb, struct led_rgb_colors *colors)
|
||||||
{
|
{
|
||||||
colors->red = (rgb >> 16) & 0xff;
|
colors->red = rgb & 0xff; /*exchange r&b data of the patten,by eric 20220623 */
|
||||||
colors->green = (rgb >> 8) & 0xff;
|
colors->green = (rgb >> 8) & 0xff;
|
||||||
colors->blue = rgb & 0xff;
|
colors->blue = (rgb >> 16) & 0xff;/*exchange r&b data of the patten,by eric 20220623 */
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static u32 avsux_dump_rgb(struct led_rgb_colors *colors)
|
static u32 avsux_dump_rgb(struct led_rgb_colors *colors)
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
#obj-y += cht8305.o
|
#obj-y += cht8305.o
|
||||||
#obj-y += cw2015_fuel_gauge_V5.0.o
|
#obj-y += cw2015_fuel_gauge_V5.0.o
|
||||||
#obj-y += cw2015.o
|
#obj-y += cw2015.o
|
||||||
obj-y += leds-aw20036.o
|
#obj-y += leds-aw20036.o
|
||||||
obj-y += feier_gpioint.o
|
obj-y += feier_gpioint.o
|
||||||
#obj-y += spi-st7789v.o
|
#obj-y += spi-st7789v.o
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue