Closed LminusSucksAtCoding closed 10 months ago
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
rgb.on(0, 0, 255) // Turn on Blue Pixel
rgb.on(0, 255, 0)
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); }
Hi there @LminusSucksAtCoding , you are correct. Fixed in #12 , thanks for reporting it!
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 ledLooking at the source code, I noticed
Could it be that the writeByte for G:0x12 and B:0x11 be swapped?