NHD-2.4-240320CF-CSXN#-F works in 18 bits(262K colors) mode
Hi, I have NHD-2.4-240320CF-CSXN#-F display. I want to use it in 18 bits(262K colors) interface. But when I send data to lcd. It accepts first 2 bytes to be a pixel, and next 1 byte to a pixel too. not next 2 bytes. how do I set it to 18 bits interface? Thanks.
-
Hi Charlie,
Unfortunately it is not possible to use 18-Bit parallel to write to the display.
There are only 16 data pins connected to the controller, you would need to write Twice to the display for 18-bit color.0 -
Hi Saurabh,
do you have initial sequence for 16 interface, but 18 bits data? My code looks working in 16 bits mode.
Thanks a lot0 -
Charlie,
Unfortunately we do not have any initialization examples to drive this display using 16bits.
I would recommend using the Interface Pixel Format command to set the display into 262K color mode with 18b/pixel.
You can find the datasheet for this controller through the following link: http://www.newhavendisplay.com/app_notes/ST7789S.pdf
To do this you would need to send the following:
Command: 0x3A
Data: 0x66
That will set the display into 262K RGB interface with 18 bits/pixel. This is explained more on page 217 of the controller datasheet.
Then you will have to decide which format you would like to use to write the data:
This will be selected by the RAM control command (0xB0h)
the MTD1 and MTD0 bits control how the data should be input into the display. On pages 81-84 of the controller specification it will give you options on how you would be able to input the data.0
Please sign in to leave a comment.
Comments
3 comments