Use ## to create sections (Learn more)
static unsigned int lcd_data_transform(unsigned int data)
/* 18 bit interface */
unsigned int r, g, b;
r = (data & 0x0000fc00)<<8;
//g = ((data & 0x00000300) >> 2) | ((data & 0x000000e0) >> 3);
g = ((data & 0x00000300) << 6) | ((data & 0x000000e0) << 5);
b = (data & 0x00000001f) << 3;
return (r | g | b);
Share the private access URL responsibly.
Anyone will be able to find and view this paste. Google will index it.
All that is necessary for the triumph of evil is that good men do nothing. Do something.