修复了用例

- 更改了默认的亮度参数,以获得更好的效果
This commit is contained in:
2023-11-12 16:36:51 +08:00
parent 8b20421b50
commit 5b227abc8b
6 changed files with 7 additions and 7 deletions

View File

@@ -16,7 +16,7 @@ int main() // 定义主函数
{ {
on tile[1]: on tile[1]:
{ {
cycleRGB_driver(); cycleHSV_driver();
} }
} }
return 0; // 返回0表示程序正常结束 return 0; // 返回0表示程序正常结束

View File

@@ -16,7 +16,7 @@ int main() // 定义主函数
{ {
on tile[1]: on tile[1]:
{ {
cycleHSV_driver(); cycleRGB_driver();
} }
} }
return 0; // 返回0表示程序正常结束 return 0; // 返回0表示程序正常结束

View File

@@ -51,7 +51,7 @@ void output_24bit_value_serially(uint32_t value)
{ {
uint32_t fall_time = 0; uint32_t fall_time = 0;
tmr:> fall_time; tmr:> fall_time;
// // 重置 RT23 // // 重置 RT23由于引脚默认为低,此处不做重置
// p_rgb_rgb <: 0x000000; // p_rgb_rgb <: 0x000000;
// tmr when timerafter(fall_time + RT23_RST_DELAY):> fall_time; // tmr when timerafter(fall_time + RT23_RST_DELAY):> fall_time;

View File

@@ -1,10 +1,10 @@
#include <xs1.h> // 包含对XCORE资源的操作 #include <xs1.h> // 包含对XCORE资源的操作
#include "rgb_driver.h"
#include "xclib.h"
#include "timer.h"
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include "xclib.h"
#include "timer.h"
#include "rgb_driver.h"
// RGB灯的数量 // RGB灯的数量
#ifndef NUM_RGBS #ifndef NUM_RGBS
@@ -13,7 +13,7 @@
// 控制RGB亮度的最大值,不超过255 // 控制RGB亮度的最大值,不超过255
#ifndef RGB_MAX #ifndef RGB_MAX
#define RGB_MAX (10) #define RGB_MAX (20)
#endif #endif
// 开关饱和检查 // 开关饱和检查