Solved: 8-bit ST7789V with RP2040 #2129
Replies: 6 comments 6 replies
-
Beta Was this translation helpful? Give feedback.
-
I found the issue #557 where exactly the same is described. I also tested the test program danem mentioned (program) and the display works fine. So im sure it is not the pin assignment. I changed the init sequence in For me it seems to be "some where" how the data are transferred to the parallel bus. That's getting out of my knowledge unfortenutely. Thanks and I hope it helps. /edit: Still no success, always just a part of the display gets written (lke the picture above). <- This is not true, I gets nothing written. I saw the display clear /edit2: Sorry multiple answers. With setting CS to LOW I can write to the display by the functions from the testprogram (see above). So the initialisation runs fine (but havn't checked the colors, will come later). /edit3: OK, |
Beta Was this translation helpful? Give feedback.
-
Post in #2128 seems to have the same problem. This suggests to me that the library is not compatible with a parallel interface based ST7789 display for some reason. That display seems to work fine with the SPI interface though! I do not have a paralle based ST7789 so am unable to test and debug. I will try to get hold of one and investigate but that may take a significant time as I am busy with other priorities at the moment. |
Beta Was this translation helpful? Give feedback.
-
I found #1773 and proposed a solution that seems to work. Change the 1 in the line in the file here to 2 and try that. This slows down the interface slightly. |
Beta Was this translation helpful? Give feedback.
-
@Bodmer thanks so much!!! With setting |
Beta Was this translation helpful? Give feedback.
-
I have updated the Github master library. The speed can now be set in the setup file, example:
|
Beta Was this translation helpful? Give feedback.
-
I got a Tufty RP2040 Board where a Display (320x240) with ST7789V driver is included.
I went through the
USER_SETUP_ID 104
where for the pins is stated:Within the
USER_SETUP_ID 105
for 16 bit it is stated:I am wondering if for the 8-bit parallel interface also a sequentially increasing of the GPIO can be used as the pins for the display are using different GPIO's (but sequentially increasing) on the Tufty board.
My first attempts seems that this is the case as the display gets "somehow" intialized but shows a completly mixed up graphic which changes during refreshing (some for the ST7789_2_DRIVER). Just for a test a used the ILI9341 driver and it gets also "somehow" initialized. The bouncing circles can be identified (much more than for the ST7789 driver), but there are two small areas with them side by side, completly wrong colours (yes, that's clear) and a lot of random pixels around these two areas. So for me it seems that the GPIO's are not hardcoded and a another assignment can be used.
For now I have no idea what is going wrong, maybe you have an idea?
My setup in the platformio.ini is:
Beta Was this translation helpful? Give feedback.
All reactions