mirror of
https://gitee.com/dlmu-cone/bf_original_balance_chassis
synced 2026-07-24 03:27:45 +08:00
添加cmakelists的支持,修复了一些静态检查warning
This commit is contained in:
@@ -36,11 +36,11 @@ void LEDSwitch(LEDInstance *_led, uint8_t led_switch)
|
||||
|
||||
void LEDShow(uint32_t aRGB)
|
||||
{
|
||||
static uint8_t alpha;
|
||||
static uint16_t red, green, blue;
|
||||
// static uint8_t alpha;
|
||||
// static uint16_t red, green, blue;
|
||||
|
||||
alpha = (aRGB & 0xFF000000) >> 24;
|
||||
red = ((aRGB & 0x00FF0000) >> 16) * alpha;
|
||||
green = ((aRGB & 0x0000FF00) >> 8) * alpha;
|
||||
blue = ((aRGB & 0x000000FF) >> 0) * alpha;
|
||||
// alpha = (aRGB & 0xFF000000) >> 24;
|
||||
// red = ((aRGB & 0x00FF0000) >> 16) * alpha;
|
||||
// green = ((aRGB & 0x0000FF00) >> 8) * alpha;
|
||||
// blue = ((aRGB & 0x000000FF) >> 0) * alpha;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user