Code: Select all
commandStartNewFrame(UART_PIXEL_FORMAT_RGB565);
for (uint16_t j=0; j<lineCount; j++) {
for (uint16_t i=0; i<lineLength; i++) {
waitForPreviousUartByteToBeSent();
UDR0 = formatRgbPixelByteH(colorH);
waitForPreviousUartByteToBeSent();
UDR0 = formatRgbPixelByteL(colorL);
}
}
}