fix avs led animation issue

This commit is contained in:
Yunlong Xiao 2022-06-23 09:35:29 +00:00
parent 8d017ba460
commit 8022d4832c
2 changed files with 4 additions and 3 deletions

View File

@ -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)

View File

@ -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