-
-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
Please add a new order
#ifdef COLOR_ORDER_RGBW
#define _p_r 0
#define _p_g 1
#define _p_b 2
#define _nb_components 4
to https://github.com/hpwit/I2SClocklessLedDriver/blob/main/src/I2SClocklessLedDriver.h
Assume you need to add a new ENUM here
enum colorarrangment
{
ORDER_RGBW,
ORDER_GRBW,
ORDER_RGB,
ORDER_RBG,
ORDER_GRB,
ORDER_GBR,
ORDER_BRG,
ORDER_BGR,
};
and here modify the switch statement in this function:
void initled(uint8_t *leds, int *Pinsq, int *sizes, int num_strips,colorarrangment cArr)
case ORDER_RGBW:
nb_components = 4;
p_r = 0;
p_g = 1;
p_b = 2;
break;
Metadata
Metadata
Assignees
Labels
No labels