ST7789 240x240

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

ST7789 240x240

Post by PANNO »

because the coolness from this lcd : can we have support for the ST7789 with indivudual Pixel Range ?

[External Link Removed for Guests]

thanks a lot
cicciocb
Site Admin
Posts: 309
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 85 times
Been thanked: 197 times
Contact:

Re: ST7789 240x240

Post by cicciocb »

This display should already be supported (you should try)
User avatar
Fernando Perez
Posts: 106
Joined: Mon Feb 15, 2021 10:09 pm
Location: Santander (Spain)
Has thanked: 55 times
Been thanked: 54 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?
cicciocb
Site Admin
Posts: 309
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 85 times
Been thanked: 197 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: 46
Joined: Mon Feb 08, 2021 10:10 pm
Has thanked: 7 times
Been thanked: 20 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:-
[External Link Removed for Guests]
cicciocb
Site Admin
Posts: 309
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 85 times
Been thanked: 197 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: 46
Joined: Mon Feb 08, 2021 10:10 pm
Has thanked: 7 times
Been thanked: 20 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.
cicciocb
Site Admin
Posts: 309
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 85 times
Been thanked: 197 times
Contact:

Re: ST7789 240x240

Post by cicciocb »

Thanks Bugs
Post Reply