mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Update led strip code to use HSV instead of RGB.
This commit is contained in:
parent
74156fe18f
commit
0b4f5804bc
10 changed files with 269 additions and 139 deletions
|
@ -20,6 +20,7 @@
|
|||
|
||||
#include "platform.h"
|
||||
|
||||
#include "common/color.h"
|
||||
#include "drivers/light_ws2811strip.h"
|
||||
|
||||
void ws2811LedStripHardwareInit(void)
|
||||
|
@ -100,7 +101,7 @@ void ws2811LedStripHardwareInit(void)
|
|||
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
|
||||
NVIC_Init(&NVIC_InitStructure);
|
||||
|
||||
setStripColor(&white);
|
||||
setStripColor(&hsv_white);
|
||||
ws2811UpdateStrip();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue