- Code: Select all
lcd_wrcmd16(0xE800); // Set 8-bit host-mode, color format: RRRGGGBB
Here is a list of possible host-modes I have found:
24-bit formats:
0x10: xxB5B4-B3B2B1B0, R3R2R1R0-G5G4G3G2, xxxx-xxR5R4.
0x50: xxR5R4-R3R2R1R0, B3B2B1B0-G5G4G3G2, xxxx-xxB5B4.
0x20: xxB5B4-B3B2B1B0, xxG5G4-G3G2G1G0, xxR5R4-R3R2R1R0.
0x60: xxR5R4-R3R2R1R0, xxG5G4-G3G2G1G0, xxB5B4-B3B2B1B0.
0x30: R5R4R3R2-R1R0xx, G5G4G3G2-G1G0xx, B5B4B3B2-B1B0xx.
0x70: B5B4B3B2-B1B0xx, G5G4G3G2-G1G0xx, R5R4R3R2-R1R0xx.
16-bit formats:
0x08: G2G1G0B5-B4B3B2B1, R5R4R3R2-R1G5G4G3
0x48: G2G1G0R5-R4R3R2R1, B5B4B3B2-B1G5G4G3
0x0C: R5R4R3R2-R1G5G4G3, G2G1G0B5-B4B3B2B1
8-bit formats:
0x00: RRRGGGBB
0x40: BBGGGRRR
The 24 bit-mode (0x30 or 0x70) may be helpful when writing RGB-data from a BMP-image directly to LCD without color conversions.


