ST7789 240x240

Give it a try, it costs you nothing !
Post Reply
User avatar
PANNO
Posts: 114
Joined: Thu Feb 25, 2021 4:03 am
Has thanked: 119 times
Been thanked: 25 times

ST7789 240x240

Post 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
User avatar
cicciocb
Site Admin
Posts: 1889
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 405 times
Been thanked: 1261 times
Contact:

Re: ST7789 240x240

Post by cicciocb »

This display should already be supported (you should try)
User avatar
Fernando Perez
Posts: 378
Joined: Mon Feb 15, 2021 10:09 pm
Location: Santander (Spain)
Has thanked: 195 times
Been thanked: 266 times

Re: ST7789 240x240

Post 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?
User avatar
cicciocb
Site Admin
Posts: 1889
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 405 times
Been thanked: 1261 times
Contact:

Re: ST7789 240x240

Post by cicciocb »

Yes, this is already supported, but never tested (at least by me) at this resolution
bugs
Posts: 142
Joined: Mon Feb 08, 2021 10:10 pm
Location: Scotland
Has thanked: 44 times
Been thanked: 50 times

Re: ST7789 240x240

Post 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/
User avatar
cicciocb
Site Admin
Posts: 1889
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 405 times
Been thanked: 1261 times
Contact:

Re: ST7789 240x240

Post by cicciocb »

Hi,
at first look this display seem to be based on I2C and is not supported.

I should buy one and test.
bugs
Posts: 142
Joined: Mon Feb 08, 2021 10:10 pm
Location: Scotland
Has thanked: 44 times
Been thanked: 50 times

Re: ST7789 240x240

Post 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.
User avatar
cicciocb
Site Admin
Posts: 1889
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 405 times
Been thanked: 1261 times
Contact:

Re: ST7789 240x240

Post by cicciocb »

Thanks Bugs
Post Reply