WXK
2023-08-30 cebd82085108b30288a6357fae633e811dbea248
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "main.h"
//#include "stm32l4xx_hal.h"
#define HALFLIGHT
#ifdef HALFLIGHT
#define RED         0XFF00
#define GREEN       0xFF0000
#define BLUE        0xFF
#define WHITE       0xFFFFFF
#define YELLOW      0xFFFF00
#define LEDOFF      0x000000
#else
#define RED         0X1100
#define GREEN       0x110000
#define BLUE        0x11
#define WHITE       0x111111
#define YELLOW      0x111100
#define LEDOFF      0x000000
#endif
void Set4LEDColor(uint32_t firstled,uint32_t secondled,uint32_t thirdled,uint32_t fourthled);
extern uint32_t led1,led2,led3,led4,led5;
void RGB_Set_RED(void);
    void RGB_Set_GREEN(void);
        void RGB_Set_BLUE(void);
            void RGB_Set_WHITE(void);
            void RGB_Set_LEDOFF(void);