优化头文件依赖

This commit is contained in:
2023-11-26 10:19:39 +08:00
parent dcc547b630
commit 03e0b57931
2 changed files with 3 additions and 3 deletions

View File

@@ -2,6 +2,7 @@
#define RGB_DRIVER_H
#include <stdint.h>
#include <xs1.h>
#include "misc_utils.h"
//TODO: 在XUA工程环境中测试
// 在Makefile中定义编译选项以使用xua配置项覆盖定义

View File

@@ -7,9 +7,8 @@
#include "rgb_driver.h"
// 如果灯的显示没有出现问题,不要修改这些宏
#define MICROSECONDS 100
#define RT23_RST_DELAY (MICROSECONDS * 200000) // 200 ms 当前没有使用,因为引脚通常自动拉低
#define T0H_DELAY (33) // 0.3 μs, assuming MICROSECONDS is 100 times the actual microsecond count
#define RT23_RST_DELAY (MICRO_SECOND * 200000) // 200 ms 当前没有使用,因为引脚通常自动拉低
#define T0H_DELAY (33) // 0.3 μs, assuming MICRO_SECOND is 100 times the actual microsecond count
#define T1H_DELAY (63) // 0.6 μs
#define T0L_DELAY (93) // 0.9 μs
#define T1L_DELAY (63) // 0.6 μs