mirror of
https://gitee.com/dlmu-cone/bf_original_balance_chassis
synced 2026-07-24 11:37:45 +08:00
增加了LK电机和HT电机的基本支持,待编写控制
This commit is contained in:
@@ -29,7 +29,7 @@ void led_RGB_flow_task()
|
||||
static float alpha, red, green, blue;
|
||||
static uint32_t aRGB;
|
||||
|
||||
for (size_t i = 0; i < RGB_FLOW_COLOR_LENGHT; i++)
|
||||
for (size_t i = 0; i < RGB_FLOW_COLOR_LENGHT; ++i)
|
||||
{
|
||||
alpha = (RGB_flow_color[i] & 0xFF000000) >> 24;
|
||||
red = ((RGB_flow_color[i] & 0x00FF0000) >> 16);
|
||||
@@ -45,7 +45,7 @@ void led_RGB_flow_task()
|
||||
delta_red /= RGB_FLOW_COLOR_CHANGE_TIME;
|
||||
delta_green /= RGB_FLOW_COLOR_CHANGE_TIME;
|
||||
delta_blue /= RGB_FLOW_COLOR_CHANGE_TIME;
|
||||
for (size_t j = 0; j < RGB_FLOW_COLOR_CHANGE_TIME; j++)
|
||||
for (size_t j = 0; j < RGB_FLOW_COLOR_CHANGE_TIME; ++j)
|
||||
{
|
||||
alpha += delta_alpha;
|
||||
red += delta_red;
|
||||
|
||||
Reference in New Issue
Block a user