WXK
2025-02-19 9844ed8dd3438e5deaba146477b80fd2115196b7
APL/WS2812.h
@@ -1,6 +1,6 @@
#include "main.h"
//#include "stm32l4xx_hal.h"
//#define HALFLIGHT
#define HALFLIGHT
#ifdef HALFLIGHT
    #define RED         0XFF00
    #define GREEN       0xFF0000
@@ -9,11 +9,11 @@
    #define YELLOW      0xFFFF00
    #define LEDOFF      0x000000
#else
    #define RED         0X1100
    #define GREEN       0x110000
    #define BLUE        0x11
    #define WHITE       0x111111
    #define YELLOW      0x111100
    #define RED         0X8800
    #define GREEN       0x880000
    #define BLUE        0x88
    #define WHITE       0x888888
    #define YELLOW      0x888800
    #define LEDOFF      0x000000
#endif
void Set4LEDColor(uint32_t firstled,uint32_t secondled,uint32_t thirdled,uint32_t fourthled);