diff --git a/examples/app_hsv_cycle_example/bin/app_hsv_cycle_example.xe b/examples/app_hsv_cycle_example/bin/app_hsv_cycle_example.xe index 3cf0dd7..c0acbe3 100644 Binary files a/examples/app_hsv_cycle_example/bin/app_hsv_cycle_example.xe and b/examples/app_hsv_cycle_example/bin/app_hsv_cycle_example.xe differ diff --git a/examples/app_hsv_cycle_example/src/main.xc b/examples/app_hsv_cycle_example/src/main.xc index 3b257f8..c9ba667 100644 --- a/examples/app_hsv_cycle_example/src/main.xc +++ b/examples/app_hsv_cycle_example/src/main.xc @@ -16,7 +16,7 @@ int main() // 定义主函数 { on tile[1]: { - cycleRGB_driver(); + cycleHSV_driver(); } } return 0; // 返回0,表示程序正常结束 diff --git a/examples/app_rgb_cycle_breathing_example/bin/app_rgb_cycle_breathing_example.xe b/examples/app_rgb_cycle_breathing_example/bin/app_rgb_cycle_breathing_example.xe index 87ed32a..93b50d8 100644 Binary files a/examples/app_rgb_cycle_breathing_example/bin/app_rgb_cycle_breathing_example.xe and b/examples/app_rgb_cycle_breathing_example/bin/app_rgb_cycle_breathing_example.xe differ diff --git a/examples/app_rgb_cycle_breathing_example/src/main.xc b/examples/app_rgb_cycle_breathing_example/src/main.xc index 11fc944..75e7f47 100644 --- a/examples/app_rgb_cycle_breathing_example/src/main.xc +++ b/examples/app_rgb_cycle_breathing_example/src/main.xc @@ -16,7 +16,7 @@ int main() // 定义主函数 { on tile[1]: { - cycleHSV_driver(); + cycleRGB_driver(); } } return 0; // 返回0,表示程序正常结束 diff --git a/lib_rgb/src/rgb_driver.xc b/lib_rgb/src/rgb_driver.xc index 6e635fa..feb5707 100644 --- a/lib_rgb/src/rgb_driver.xc +++ b/lib_rgb/src/rgb_driver.xc @@ -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; diff --git a/lib_rgb/src/rgb_effect.xc b/lib_rgb/src/rgb_effect.xc index 96ac6a0..33e9bdc 100644 --- a/lib_rgb/src/rgb_effect.xc +++ b/lib_rgb/src/rgb_effect.xc @@ -1,10 +1,10 @@ #include // 包含对XCORE资源的操作 -#include "rgb_driver.h" -#include "xclib.h" -#include "timer.h" #include #include #include +#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 // 开关饱和检查