mirror of
https://gitee.com/dlmu-cone/bf_original_balance_chassis
synced 2026-07-24 03:27:45 +08:00
清除所有的legacy support,增加编译时的内存使用预测和Werror选项,统一命名。
This commit is contained in:
@@ -34,6 +34,13 @@ void LEDSwitch(LEDInstance *_led, uint8_t led_switch)
|
||||
}
|
||||
}
|
||||
|
||||
void LEDShow()
|
||||
void LEDShow(uint32_t aRGB)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
3
modules/led/led.md
Normal file
3
modules/led/led.md
Normal file
@@ -0,0 +1,3 @@
|
||||
TO BE DONE
|
||||
|
||||
请勿使用
|
||||
Reference in New Issue
Block a user