diff --git a/README.md b/README.md index 7655add..718c2f6 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,7 @@ ![alt text](my_picture/温度.png) ### 显示时间 +![显示时间.jpg](my_picture/显示时间.jpg) [参考(https://blog.csdn.net/toopoo/article/details/113665077)](https://blog.csdn.net/toopoo/article/details/113665077) ``` c void greattime() diff --git a/my_picture/显示时间.jpg b/my_picture/显示时间.jpg new file mode 100644 index 0000000..994b21f Binary files /dev/null and b/my_picture/显示时间.jpg differ diff --git a/my_pro/my_func.h b/my_pro/my_func.h index a990832..394ca04 100644 --- a/my_pro/my_func.h +++ b/my_pro/my_func.h @@ -2,7 +2,7 @@ #include #include #include - +#define PAGE_MAX 2 // 当前方向 void mytime(); void greattime(); diff --git a/my_pro/myinfrared.c b/my_pro/myinfrared.c index beab65a..f101d55 100644 --- a/my_pro/myinfrared.c +++ b/my_pro/myinfrared.c @@ -3,6 +3,7 @@ #include #include "infrared.h" #include +#include "my_func.h" #define DBG_TAG "main" #define DBG_LVL DBG_LOG @@ -13,7 +14,6 @@ /* 配置 LED 灯引脚 */ #define PIN_LED_B GET_PIN(F, 11) // PF11 : LED_B --> LED #define PIN_LED_R GET_PIN(F, 12) // PF12 : LED_R --> LED -#define PAGE_MAX 2 extern rt_atomic_t now_direction; extern rt_atomic_t snake_pressed; diff --git a/my_pro/myproject.c b/my_pro/myproject.c index 929590d..f1508d3 100644 --- a/my_pro/myproject.c +++ b/my_pro/myproject.c @@ -35,7 +35,6 @@ rt_atomic_t page_chosen = 1; rt_atomic_t page_first = 1; rt_atomic_t page_stop = 0; -#define PAGE_MAX 2 #define GPIO_LED_B GET_PIN(F, 11) #define GPIO_LED_R GET_PIN(F, 12)