I leave the library to use ST7789 TFT display, I have translated one that is in C language. But unfortunately I have not been able to get it to work yet. I leave the files in case someone with more experience with these displays can review it.
Hi I,
Yes, RASET confused me, in the CODE it's PASET, no RASET?
I have Call SPI_sendcmd(ST77XX_RASET) //Row addr set ? ] commented out, I can't remember if I changed it to get it to compile?
C
Hi I,
I just used your CODE within mine, and much of this didn't compile?
---------------------------------------------
If x >= width Then
x=x0
y = y + size
If(y>=height)Break;//
LCD_ShowChar(x,y,*P,size,1);
x+=size/2;
P++;
Wend
-------------------------
C
Hi I,
Yes, well done.
I'll just keep trying, and look for the differences, or use my OSC and SPI set up.
I'll also recheck my wiring. I could add a digital anayliser to see what the SPI is doing.
C.
Mine just has a wire to 3V as there is a current limit resistor on mine... To be safe
the circuit on mine has a 1k into a NPN with a 3R9 to ground.. so a 3v supply will turn it on.
If your screen is white, then its working or you wouldn't see anything.. If it was initializing the screen would have a random mess all over the screen until you clear it.
Mine just has a wire to 3V as there is a current limit resistor on mine... To be safe
the circuit on mine has a 1k into a NPN with a 3R9 to ground.. so a 3v supply will turn it on.
If your screen is white, then its working or you wouldn't see anything.. If it was initializing the screen would have a random mess all over the screen until you clear it.
Hi I,
Mine has a 3.3v rack, that I switch on, and it goes white, then it goes messy as you say. This is with my set up, but I'm trying your OSC at the moment.
I always have trouble with SDO and SDI! Is the TFT_SDI MOSI or MISO (Master Out Save In)?
EDIT: I think I've figured out SDO on the screen TFT_SDO = MISO
C
One other thing... may be important. Some of these initialize wrong so you may need to try rotation.
the MADCTL does this.... MY up'ends the rows.. MV up'ends the columns MV exchanges them.
ML up'ends the vertical refresh, MH up'ends the Horizontal refresh .. Up'ends is my way of saying it draws the pixels backwards..
_________________________________________ | MY | MX | MV | ML | BGR | MH | X | X | // 0x36
I set mine to 0x8 as the colors are inverted
Swap the 0x8 in my code to 0x48..
if it don't work swap it back... Funnily enough the code I pinched had 0x48 in the init.