SumProject/board/ports/led_matrix/drv_matrix_led.h

22 lines
513 B
C
Raw Normal View History

2024-08-05 20:57:09 +08:00
#ifndef _LED_MATRIX
#define _LED_MATRIX
#include <rtthread.h>
typedef struct RGBColor_TypeDef
{
uint8_t G;
uint8_t R;
uint8_t B;
} RGBColor_TypeDef; // 颜色结构体
2025-01-23 21:00:56 +08:00
// extern const RGBColor_TypeDef DARK;
// extern const RGBColor_TypeDef GREEN;
// extern const RGBColor_TypeDef RED;
// extern const RGBColor_TypeDef BLUE;
// extern const RGBColor_TypeDef WHITE;
2025-01-17 19:52:53 +08:00
2024-08-05 20:57:09 +08:00
extern void Set_LEDColor(uint16_t LedId, RGBColor_TypeDef Color);
extern void RGB_Reflash(void);
extern void led_matrix_rst();
#endif