2

The title pretty much says it all. Can I just send RGB data according to the protocol or I need some init before that to make it work?

user34920
  • 1,872
  • 2
  • 22
  • 44
  • 1
    What does the datasheet say? – Colin Feb 23 '18 at 08:55
  • @Colin__s It's unclear, that's why I am asking. I have the unfortunate experience working with several other ILI*** based LCDs in the past and many things are not clear after reading the datasheet. – user34920 Feb 23 '18 at 08:59
  • Usually you ask the supplier of the LCD panel (I assume you are not making your own) for the driver ROM code (a long list of command-value pairs) for power on/off. That's basically the firmware for the panel. There might be some circulating around on github as well. – user3528438 Jun 27 '20 at 05:18
  • @user34920 In my experience ILITEK datasheets are probably the most informative you can find. It is just that the information in them is aimed at glass designers and their driver developers. Only when panel manufacturer does not have the latter, the pain falls on end users. Luckily, [Adafruit](https://github.com/adafruit/Adafruit_ILI9341) has drivers for many popular chips, including this one. Look at their "initcmd" array and find corresponding command codes in datasheet – Maple Nov 15 '21 at 03:16

1 Answers1

1

Well, you can always send RGB data to the ILI9341. In the end, it just has a block of graphics ram that you can read and write from using the memory commands. I guess the real question is whether that data will appear in any sort of useful way on whatever LCD panel the ILI9341 is driving.

The answer to that is it will not unless you perform at least a basic level of initialisation. At a minimum you will need to issue the 0x29 display on command. That might cause something to appear. But to ensure the display is being driven properly, you need to setup the power settings for the controller. There are a number of these commands and they determine the voltages sent to the panel to control each pixel. If these are not setup correctly the panel will have poor contrast and colour representation, may not work at all, or could even be damaged. You will probably also want to set the graphics ram to screen pixel mappings, and maybe even the interface/colour format if the default settings are not suitable.

Any decent LCD supplier will include a basic list of initialisation commands to suit their particular panel. Unfortunately there are no shortcut to this, and you'll either need to talk to the module supplier or, at a minimum, copy the initialisation code from a similar product.

Jon
  • 4,894
  • 13
  • 20