SumProject/my_pro/indicator_led.h
2025-01-18 00:46:10 +08:00

18 lines
622 B
C

#include <rtthread.h>
#include <drv_matrix_led.h>
#define LED_IS_BLINKING 1
#define LED_NOT_BLINKING 0
#define LED_CHARGE_ID(i) (i+12-1)
#define LED_BREATH_ID(i) (i-1)
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 int led_blink_init(void);
extern int led_breath_init(void);
extern const RGBColor_TypeDef LED_OFF;
extern const RGBColor_TypeDef LED_ON;