forked from PAWPAW/lib_rgb
修复了用例
- 更改了默认的亮度参数,以获得更好的效果
This commit is contained in:
Binary file not shown.
@@ -16,7 +16,7 @@ int main() // 定义主函数
|
||||
{
|
||||
on tile[1]:
|
||||
{
|
||||
cycleRGB_driver();
|
||||
cycleHSV_driver();
|
||||
}
|
||||
}
|
||||
return 0; // 返回0,表示程序正常结束
|
||||
|
||||
Binary file not shown.
@@ -16,7 +16,7 @@ int main() // 定义主函数
|
||||
{
|
||||
on tile[1]:
|
||||
{
|
||||
cycleHSV_driver();
|
||||
cycleRGB_driver();
|
||||
}
|
||||
}
|
||||
return 0; // 返回0,表示程序正常结束
|
||||
|
||||
@@ -51,7 +51,7 @@ void output_24bit_value_serially(uint32_t value)
|
||||
{
|
||||
uint32_t fall_time = 0;
|
||||
tmr:> fall_time;
|
||||
// // 重置 RT23,
|
||||
// // 重置 RT23,由于引脚默认为低,此处不做重置
|
||||
// p_rgb_rgb <: 0x000000;
|
||||
// tmr when timerafter(fall_time + RT23_RST_DELAY):> fall_time;
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
#include <xs1.h> // 包含对XCORE资源的操作
|
||||
#include "rgb_driver.h"
|
||||
#include "xclib.h"
|
||||
#include "timer.h"
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include "xclib.h"
|
||||
#include "timer.h"
|
||||
#include "rgb_driver.h"
|
||||
|
||||
// RGB灯的数量
|
||||
#ifndef NUM_RGBS
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
// 控制RGB亮度的最大值,不超过255
|
||||
#ifndef RGB_MAX
|
||||
#define RGB_MAX (10)
|
||||
#define RGB_MAX (20)
|
||||
#endif
|
||||
|
||||
// 开关饱和检查
|
||||
|
||||
Reference in New Issue
Block a user