Skip to content

RGB.on Green & Blue Values possibly switched? #9

Closed
@LminusSucksAtCoding

Description

@LminusSucksAtCoding

Hi, We have recently gotten a Gigadisplay board and were toying with the example code for the RGB LED.
Running:
rgb.on(0, 0, 255) // Turn on Blue Pixel
unexpectedly turned on our green LED, similarly running:
rgb.on(0, 255, 0)
turned on our blue led

Looking at the source code, I noticed

void GigaDisplayRGB::on(uint8_t r, uint8_t g, uint8_t b)
{
writeByte(0x10, r);
writeByte(0x12, g);
writeByte(0x11, b);
writeByte(0x2b, 0xc5);
}

Could it be that the writeByte for G:0x12 and B:0x11 be swapped?

void GigaDisplayRGB::on(uint8_t r, uint8_t g, uint8_t b)
{
writeByte(0x10, r);
writeByte(0x11, g);
writeByte(0x12, b);
writeByte(0x2b, 0xc5);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions