Go Down

Topic: ST7781 and STM32 (Read 250 times) previous topic - next topic

frankz

I tried lostesso sketch (graphictest_kbv) on arduino uno and the problem is the same.
but I noticed that the step lines (on both boards) are only horizontal, as can be seen from the attached photo.

frankz

I solved the problem by forcing the ID a = 0x9325 and both arduino a and "nucleo" works
Thank you again for your patience.

david_prentice

Please run LCD_ID_readreg and copy-paste from the Serial Terminal.
You should get something similar to #11

Even if you force the ID in graphictest_kbv,  the Serial Terminal will tell you what ID the library found.
And the Adafruit Tests screen shows the ID too.

What ID does it say to you?

The ST7781 is very different to the ILI9325.   It has similar registers but they need different values.

The whole point of my library is to read the controller ID and behave correctly.

There is something very unusual about your "horizontal step lines".
I am intrigued.

David.

frankz

sorry, for not having answered you.
I solved the problem by forcing ID of the TFT to 0x9325 ILI9325.
so it works both on an arduino one and on the NUCLEO board.

david_prentice

You wrote that in #16.

I asked what ID was reported by the examples.   Most examples report to Serial Terminal at 9600 baud.
Or the graphictest_kbv reports the ID on the "Adafruit Tests" screen.

ST7781 and ILI9325 or ILI9325D are different.   I would not expect the display to work with the wrong initialisation (i.e.  wrong ID)

David.

Go Up