mirror of
https://gitee.com/dlmu-cone/bf_original_balance_chassis
synced 2026-07-24 03:27:45 +08:00
更新了说明文档和环境配置教程
This commit is contained in:
@@ -5,15 +5,17 @@
|
||||
* @brief 流水灯效
|
||||
* @version 0.1
|
||||
* @date 2022-11-30
|
||||
*
|
||||
*
|
||||
* @copyright Copyright (c) 2022
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#include "led_task.h"
|
||||
|
||||
#include <stdint-gcc.h>
|
||||
|
||||
#include "bsp_led.h"
|
||||
#include "main.h"
|
||||
#include <stdint-gcc.h>
|
||||
|
||||
#define RGB_FLOW_COLOR_CHANGE_TIME 1000
|
||||
#define RGB_FLOW_COLOR_LENGHT 6
|
||||
@@ -21,7 +23,6 @@
|
||||
// 蓝 -> 绿(灭) -> 红 -> 蓝(灭) -> 绿 -> 红(灭) -> 蓝
|
||||
uint32_t RGB_flow_color[RGB_FLOW_COLOR_LENGHT + 1] = {0xFF0000FF, 0x0000FF00, 0xFFFF0000, 0x000000FF, 0xFF00FF00, 0x00FF0000, 0xFF0000FF};
|
||||
|
||||
|
||||
void led_RGB_flow_task()
|
||||
{
|
||||
static float delta_alpha, delta_red, delta_green, delta_blue;
|
||||
@@ -55,5 +56,4 @@ void led_RGB_flow_task()
|
||||
aRGB_led_show(aRGB);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user