Use the ASF diver for the 9341 controller to control the ST7789VW

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello everybody
i was using a display with controller ili9341 provided by ASF
i have to replace it with one with ST7789VW
reading here and there in this forum, they talked about the only equivalent drivers.
Can anyone explain me better?
ie I can drive the new display with the libraries of the old controller provided by atmel studio ???

Thank you all

Stefano

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ST7789V uses the same User Registers as the ILI9341.  e.g. to define draw areas, write pixels, invert colours, ...

 

However the Manufacturer Registers are different.   These are used in the init() or begin() function to set up power configurations, screen directions, ...

 

So you just use a different set of register-values in the initial setup()

The actual application will use exactly the same "user" calls.

 

Of course ASF is a complete nightmare.   Finding anything is difficult.   And when you do,  it makes my head hurt.

 

Please start with your working ILI9341 project.  I presume AS7.0

Clean the project.  Then ZIP up the project directory and attach the ZIP.

 

Post a link to your ILI9341 display.

Post a link to your ST7789 display.

 

I will show you what to change.  i.e. post a ST7789 version.

 

If you have the common Chinese Red SPI displays I can probably run the project(s) on real hardware.

e.g. with SAM3X, SAMD21, SAM4S

 

David.

Last Edited: Tue. Sep 20, 2022 - 03:47 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks David
I would never have imagined in such availability.
in the next few days I will do as you told me and I am attaching everything

Thanks again

 

Stefano

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi, David
I'm much more in trouble than I thought ... :(
I am attaching the first project with ili9341 working for the micro ATSAM4S2C of my board.
I cloned the project and tried to implement the ST7789 library and I lost my way .... (I am attaching the project)
in ST7789.h i changed the display pins but not the KEY pin which i don't understand.
Obviously nothing works :(

 

thanks if you can help me a little ....

 

Stefano

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I hope that the ILI93_display.zip is the original working project.

 

I will dig out my SAM4S-XPRO board.

Your project builds but with 52 Warnings and 8 Messages.

 

Meanwhile I will try to get ASF ILI9341_EXAMPLE running on the SAM4S-XPRO instead of SAM4S-XPLD

My head is hurting already.

 

David.

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi, David
The project is made for a card of mine that mounts sam4s82c and is working.
Anyway I just took the pin configuration of my card and set them to the ASF ili93xx project (with some minor changes)
I had done a very basic thing that draws lines and circles
If you want I can try to recover a demo board (maybe) sams x planted

 

Thank you
Stefano