44 lines
1.2 KiB
C
44 lines
1.2 KiB
C
#ifndef _LED_MATRIX
|
|
#define _LED_MATRIX
|
|
#include <rtthread.h>
|
|
|
|
typedef struct RGBColor_TypeDef
|
|
{
|
|
uint8_t G;
|
|
uint8_t R;
|
|
uint8_t B;
|
|
} RGBColor_TypeDef; // 颜色结构体
|
|
|
|
|
|
// //灯处于特定颜色还是闪烁状态
|
|
// extern uint8_t LED_Blink_Staue[LED_NUM]={0};
|
|
// // 灯闪烁颜色缓存
|
|
// extern RGBColor_TypeDef LED_Blink_Color[LED_NUM] = {0};
|
|
|
|
extern const RGBColor_TypeDef LED_DARK ;
|
|
extern const RGBColor_TypeDef LED_GREEN;
|
|
extern const RGBColor_TypeDef LED_RED ;
|
|
extern const RGBColor_TypeDef LED_BLUE ;
|
|
extern const RGBColor_TypeDef LED_WHITE ;
|
|
|
|
extern const RGBColor_TypeDef LT_RED ;
|
|
extern const RGBColor_TypeDef LT_GREEN ;
|
|
extern const RGBColor_TypeDef LT_BLUE ;
|
|
extern const RGBColor_TypeDef LT_WHITE ;
|
|
extern const RGBColor_TypeDef LT_PURPLE;
|
|
extern const RGBColor_TypeDef LT_YELLOW;
|
|
extern const RGBColor_TypeDef LLT_RED ;
|
|
extern const RGBColor_TypeDef LLT_GREEN;
|
|
extern const RGBColor_TypeDef LLT_BLUE ;
|
|
extern const RGBColor_TypeDef LLT_WHITE;
|
|
extern const RGBColor_TypeDef LLT_PURPLE;
|
|
extern const RGBColor_TypeDef LLT_YELLOW;
|
|
|
|
extern const RGBColor_TypeDef LEDI_OFF ;
|
|
extern const RGBColor_TypeDef LEDI_ON ;
|
|
extern void Set_LEDColor(uint16_t LedId, RGBColor_TypeDef Color);
|
|
|
|
extern void RGB_Reflash(void);
|
|
extern void led_matrix_rst();
|
|
#endif
|