The ST7789 display does not seem to support 16-bit color

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
mutantbob
 
Posts: 6
Joined: Tue Jun 14, 2022 2:12 pm

The ST7789 display does not seem to support 16-bit color

Post by mutantbob »

I purchased a https://www.adafruit.com/product/4311 .

I have it wired up to an Arduino Uno, and I am able to run the pictureEmbed example from the ILI9341 library, but the colors are wrong.

After much experimentation, my theory is that the device is interpreting the u16 pixels not as r5g6b5, but as b3r2g3. If I adjust the pixels, I can get a properly colored flag of Cymru (I use that name because its english name is banned)
x.jpg
x.jpg (215.61 KiB) Viewed 449 times
.

I have opened an issue at https://github.com/adafruit/Adafruit_ILI9341/issues/80 .

I can not figure out how to switch from 8-bit color to 16-bit or 18-bit color.

User avatar
neradoc
 
Posts: 542
Joined: Wed Apr 27, 2016 2:38 pm

Re: The ST7789 display does not seem to support 16-bit color

Post by neradoc »

Did you follow the guide for the display ? It's this one, right ? "4311"
https://learn.adafruit.com/2-0-inch-320 ... iring-test
I doesn't look like it uses the ILI9341 library, but the ST7789. Did you adapt the example ?

User avatar
mutantbob
 
Posts: 6
Joined: Tue Jun 14, 2022 2:12 pm

Re: The ST7789 display does not seem to support 16-bit color

Post by mutantbob »

OK, that explains a lot. I must have followed a link from a different product that uses the ili9341 interface.

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”