#include #include #define LED_NUM 19 // LED灯珠个数 #define LED_IS_BLINKING 1 #define LED_NOT_BLINKING 0 #define LED_BREATH_ON 1 #define LED_BREATH_OFF 0 #define LED_BREATH_OFF_LASTING 2 #define LED_IS_BREATHING 6 #define LED_CHARGE_ID(i) (i+12-1) //电源指示灯序号(1-12) #define LED_BREATH_ID(i) (i-12) //呼吸灯序号(1-12) void LED_Set(uint16_t LedId, RGBColor_TypeDef Color); void LED_SetMore(uint16_t LedId_begin,uint16_t LedId_end, RGBColor_TypeDef Color); void LED_Blink(uint16_t LedId, RGBColor_TypeDef Color); void LED_BlinkMore(uint16_t LedId_begin, uint16_t LedId_end, RGBColor_TypeDef Color); void LED_Breath(uint16_t LedId, RGBColor_TypeDef Color); void LED_BreathMore(uint16_t LedId_begin, uint16_t LedId_end, RGBColor_TypeDef Color); int led_init(void);