20 lines
738 B
C
20 lines
738 B
C
#include <rtthread.h>
|
|
#include <drv_matrix_led.h>
|
|
|
|
#define LED_IS_BLINKING 1
|
|
#define LED_NOT_BLINKING 0
|
|
#define LED_BREATH_ON 1
|
|
#define LED_BREATH_OFF 0
|
|
|
|
#define LED_CHARGE_ID(i) (i+12-1) //电源指示灯序号(1-12)
|
|
#define LED_BREATH_ID(i) (i-1) //呼吸灯序号(1-12)
|
|
|
|
extern void LED_Set(uint16_t LedId, RGBColor_TypeDef Color);
|
|
extern void LED_SetMore(uint16_t LedId_begin,uint16_t LedId_end, RGBColor_TypeDef Color);
|
|
extern void LED_Blink(uint16_t LedId, RGBColor_TypeDef Color);
|
|
extern void LED_BlinkMore(uint16_t LedId_begin, uint16_t LedId_end, RGBColor_TypeDef Color);
|
|
extern void LED_BreathTurn(uint8_t LedBreath_state);
|
|
extern int led_init(void);
|
|
|
|
extern const RGBColor_TypeDef LED_OFF;
|
|
extern const RGBColor_TypeDef LED_ON; |