This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Convert 888 RGB

Hi,

I am interfacing 8 bit data lines to a TFT LCD panel. Do I need to convert 24- bit RGB value into 3-3-2 RGB value? If so kindly let me know how to convert?

Thank u.

  • Having an 8-bit data interface to a LCD doesn't mean that the LCD needs to be limited to only 256 colors. The datasheet for the display should tell you what you need to know.

    The next thing is that displays with only 256 colors normally uses paletted colors. Which means that your color conversions will depend on the contents of the palette.

    Yet another issue is that color conversion from 24-bit colors to a 256-color display would normally be done differently if displaying a photo (where you would use error-propagation to try to average out the color errors) and when you want to display an interface on the display.

    And if displaying a photo, then the best results comes from creating a custom palette for the specific photo.

  • Thank you. Could I get example programs for SSD2119 driver to display rectangle/lines on tft using cortex-m3?

  • Why do you think you need examples specifically using a Cortex-M3? Shouldn't you separate the two issues of how to draw on the display, and how to interface with the display?