Skip to content

Add new COLOR_ORDER for RGBW Pixels with Order RGBW #27

@leonyuhanov

Description

@leonyuhanov

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions