Fix colors on LED strip

master
Adam Honse 7 years ago
parent 727516e712
commit 854d7d0ec5

@ -104,8 +104,8 @@ void LEDStripController::SetLEDs(std::vector<RGBColor> colors)
int pixel_idx = idx / 3;
RGBColor color = colors[pixel_idx];
serial_buf[idx + 1] = RGBGetRValue(color);
serial_buf[idx + 2] = RGBGetRValue(color);
serial_buf[idx + 3] = RGBGetRValue(color);
serial_buf[idx + 2] = RGBGetGValue(color);
serial_buf[idx + 3] = RGBGetBValue(color);
}
unsigned short sum = 0;

Loading…
Cancel
Save