1 #ifndef _LED_MATRIX 2 #define _LED_MATRIX 3 #include <rtthread.h> 4 5 typedef struct RGBColor_TypeDef 6 { 7 uint8_t G; 8 uint8_t R; 9 uint8_t B; 10 } RGBColor_TypeDef; // 颜色结构体 11 12 extern const RGBColor_TypeDef DARK; 13 extern const RGBColor_TypeDef GREEN; 14 extern const RGBColor_TypeDef RED; 15 extern const RGBColor_TypeDef BLUE; 16 extern const RGBColor_TypeDef WHITE; 17 18 extern void Set_LEDColor(uint16_t LedId, RGBColor_TypeDef Color); 19 extern void RGB_Reflash(void); 20 extern void led_matrix_rst(); 21 #endif 22