Page 1 of 1

ST7789 240x240

Posted: Tue Apr 06, 2021 4:05 pm
by PANNO
because the coolness from this lcd : can we have support for the ST7789 with indivudual Pixel Range ?

https://www.ebay.de/itm/ST7789-1-3-Inch ... Sw1xZe8s~y

thanks a lot

Re: ST7789 240x240

Posted: Tue Apr 06, 2021 7:33 pm
by cicciocb
This display should already be supported (you should try)

Re: ST7789 240x240

Posted: Sat Apr 24, 2021 8:03 pm
by Fernando Perez
I don't understand (damn Google translator) your answer.
Do you mean that the ST7789 is already Annex compatible and that Panno should do a test or do you think that you should incorporate it into a future version of Annex?

Re: ST7789 240x240

Posted: Sat Apr 24, 2021 8:16 pm
by cicciocb
Yes, this is already supported, but never tested (at least by me) at this resolution

Re: ST7789 240x240

Posted: Thu Apr 29, 2021 7:55 pm
by bugs
I bought one of these modules (identical to the picture in the first post).
It only has 7 pins - missing the CS pin.
I have eventually got it to work with an Arduino UNO with "-1" as the CS pin but the TFT.init in Annex requires a CS pin.

My question is - does Annex require a module with CS or is it going to work if I use a dummy GPIO number?
If it needs CS then I will try adding it as shown here:-
https://www.instructables.com/Adding-CS-Pin-to-13-LCD/

Re: ST7789 240x240

Posted: Tue May 04, 2021 5:06 pm
by cicciocb
Hi,
at first look this display seem to be based on I2C and is not supported.

I should buy one and test.

Re: ST7789 240x240

Posted: Wed May 05, 2021 2:47 pm
by bugs
Hi cicciocb,

It is SPI (not I2C) but the MOSI pin is labelled SDA because the chip can send data out on it as well as receive.
I have got it working eventually. The lack of CS is not a problem as Annex does not complain if I use -1 as the CS pin. The reset pin does have to be toggled at initialisation.
It requires slightly different initialisation codes to the ST7735 and my module requires SPI mode 3 to work with Annex.
I will post some code in the hardware section of the forum later today or tomorrow.
With the correct init and SPI mode I can use all the Annex TFT commands.

Re: ST7789 240x240

Posted: Wed May 05, 2021 2:54 pm
by cicciocb
Thanks Bugs