afiskon / stm32-st7735

STM32 HAL-based library for ST7735 displays
https://eax.me/stm32-st7735/
MIT License
235 stars 65 forks source link

240 x 320 setup #2

Closed scott1423 closed 5 years ago

scott1423 commented 5 years ago

Hi I have been using your C code for my 1.8" st7735, and works really well. I purchased a 2.8" 240x320 ST7735 and hoped it was just a matter of changing the MaxY and X width. Do you have a bit of code to setup the 240 x 320?

Many thanks Scott

afiskon commented 5 years ago

Hello @scott1423

According to the datasheet ST7735 doesn't support 240x320 resolution http://www.displayfuture.com/Display/datasheet/controller/ST7735.pdf

I guess your display may be in fact ILI9341 module because 240x320 and 2.8" are common for these displays. There is a separate library for ILI9341 displays https://github.com/afiskon/stm32-ili9341

If you are sure you are not dealing with ILI9341 could you please upload a picture of your module and/or provide a URL where it was purchased?

scott1423 commented 5 years ago

Hi Thanks for the below. You are correct, it is a ILI9341. On the add it displayed baritones from 1.4 to 2.8, and mentioned it’s a st7735. But further looking into it it says it’s the ILI9341. That’s what I get for not looking at it properly:)

Your library I use for the st7735 is in c as I don’t write my processor (stm32L4) in C++. Is this code for the ILI9241 also in C? As that would be perfect.

Many thanks again

Best regards Scott

Sent from my iPhone

On 25 Jul 2019, at 3:07 pm, Aleksander Alekseev notifications@github.com wrote:

Hello @scott1423

According to the datasheet ST7735 doesn't support 240x320 resolution http://www.displayfuture.com/Display/datasheet/controller/ST7735.pdf

I guess your display may be in fact a ILI9341 module because 240x320 and 2.8" are common for these displays. There is a separate library for ILI9341 displays https://github.com/afiskon/stm32-ili9341

If you are sure you are not dealing with ILI9341 could you please upload a picture of your module and/or provide a URL where it was purchased?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

afiskon commented 5 years ago

Yes, the ILI9341 library is also written in C.

scott1423 commented 5 years ago

Many thanks

Best regards Neil

Sent from my iPhone

On 25 Jul 2019, at 9:31 pm, Aleksander Alekseev notifications@github.com wrote:

Yes, the ILI9341 library is also written in C.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.