Sorry if this isn't really an issue of the lib, I am just unsure what could this be caused.
So, I am having a problem with data writes to the ST7789. I have a 1.3inch 240*240 display.
My issue is, that the display in unreliable.
What am I trying to achieve?
I've created a simple sketch for red, green and blue screen.
What do I expect to happen?
I expect that the display will fill up with colors RED, GREEN and BLUE in this order with a delay in between.
What is happening?
After uploading the sketch via ST-Link V2 (yes, the china knockoff one) only 10% of a time display even shows the RED color. 90% of a time it just stays black.
IF, the displays shows the RED color, it never continues to the GREEN, 5% of a time there is BLUE.
Sometimes it shows the RED color and then resets (Goes black from red) for no reason, after delays that I've implemented.
What I've tried to do, to solve this?
- Turning down the baud rate on the SPI (from 21MBit/s to 10.5MBit/s) - no improvement
- Turning off the DMA - no improvement
- Changing the DC and RST pins - no improvement
- Running LCD_Init() before every display write - This was the only time that I was able to show all 3 colors on the display
- Measured the resistance of my DUPON cables - all good 0 Ohms in resistance
Could you please point me into the right direction on this? I am unsure on why this happens, I was not able to replicate any of this on purpose. Could it possibly be some brownout caused by feeding the display directly from the 3V3 of my blackbill?
Thanks in advance. Sorry for the long post.
EDIT:
Sorry if any of these points just screams incompetence, I am very new to CUBE-IDE. So please have some mercy 😄