forked from PAWPAW/lib_rgb
新增一个单色示例
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h> // 包含基本的输入输出函数
|
||||
#include "samples_to_levels.h"
|
||||
#include "rgb_effect.h"
|
||||
#include "timer.h"
|
||||
#define DELAY_DECREASE 20 // 降低亮度时的额外延迟
|
||||
@@ -29,7 +28,7 @@ void cycleHSV_vol_level_smooth_example()
|
||||
previous_levels[i]--; // 降低当前级别
|
||||
// 用当前颜色和级别填充渐变
|
||||
fill_gradient_with_groups(buf, current_color, previous_levels);
|
||||
delay_milliseconds(DELAY_TIME_RGB); // 延迟
|
||||
delay_milliseconds(DELAY_DECREASE); // 延迟
|
||||
// 更新每一步的RGB颜色
|
||||
for (size_t j = 0; j < NUM_RGB_GROUPS; j++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user