Go Down

Topic: Graphics library for cheap KMR-1.8 SPI (S6D02A1 and ILI9163) TFT displays (Read 33626 times) previous topic - next topic

bodmer

@kacitran

The display PCB is visually similar to mine but has a different TFT screen. I can only suggest you different graphics drivers to try to find one that works.

garystofer

Hey Bodmer,

I tried this library on the boards I got from CN the other day.  I get it almost to work with the 7735 library, The colors show up correctly, but a couple of inconsistencies exist when running the simple graphics test from your examples.

The first column and row of the display is not getting cleared or drawn.
There are some spurious horizontal lines in the multiple font test in the letter H of "Hello" .
There are some spurious horizontal lines in the testlines(ST7735_YELLOW), They are in different locations from the Hello test. One line at row 2, about 3/4 the lenght of the display, one about in the middle and about 5 short sections toward the bottom of the screen 

I tried the Adafruit 7735 lib on the same device and it does not have the flaws mentioned above, but as you mentioned is a lot slower.

Any suggestions other than using the slow adafruit lib ?

Gary

bodmer

@garystofer

How is the display wired to the Arduino board?

Which Arduino board are you using?

scargill

Has anyone gotten to the point of putting side by side comparisons for using these chips  - I have a driver (C not C#) for the S6D02a1 with fonts etc.... and I really don't want to re-invent the wheel to get the others running if someone has already done this...

Pete.
Regards

Peter Scargill
http://tech.scargill.net

bodmer

@scargill You can find the init code for the.two TFT drivers here:
https//github.com/Bodmer/TFT_eSPI/tree/master/TFT_Drivers

scargill

Well I have tried all 3 processor initialisations ( with S6D02A1 general routines) and though I can get text to appear for somewhat less than a second - result is always the same - in less than a second the display fades to white...

Regards

Peter Scargill
http://tech.scargill.net

scargill

Well with a slight fix I now have one blog reader saying his works perfectly with the ST7735,   I know my 6SD02A1 boards work a treat - but this one - is not having it - I can get the display up most of the time with text and graphics but within a fraction of a second it has faded to white... frustrating.  The driver for the ILI9163 init doesn't do a thing... if anyone knows of ANOTHER chip these things could use - please do let me know.
Regards

Peter Scargill
http://tech.scargill.net

yllawwally

The driver works great. However the black seems to be washed out.  This is certainly an electrical issue.  I put a 1.2k resistor to ground, and one between the nano and the display.  When I disconnect the SDA line, the issue is fixed. Obviously this isn't a solution.  All the color are washed out, and the black is pretty much gray. If I removed the sda line, the colors become crisp.  When the sda line is reconnected it goes back to washed out.  Have any of you seen this issue, and know of a fix?

bodmer

It appears that the SDA line is supplying current to the display, check the inline resistor values are correct.

If that is OK, then check if the display is still grey after drawing a single black pixel with say a long delay afterwards. Writing black to the screen should set the SDA line low so it does not source power. Also try the same test when drawing a white pixel, this sets the SDA line high. The idea of this test is to see if current being supplied by the SDA line is really affecting the grey level.

Note, if colours are inverse then the SDA line may be low for white and high for black.

yllawwally

Thanks for your help, I had accidentally put the grounding resistor to the wrong pin.  Once the 1.2k resistor was connected to the proper SDA pin, the colors became vibrant.

alexartd

Hello I've this display but it show graphics in a bad way, like in revert ecc as you can see here:
https://photos.app.goo.gl/PzSRZzHE5bYfk5UV2
Is display that doesn't work well or I 've connected it in a wrong mode ?
Many thanks

bodmer

@alexatd
It is likely the TFT is fine and the good news is that you have connected it up and got communication working. It is probable the display has a different driver chip fitted and thus the initialisation sequence that configures the display is not right.

Which of the two libraries in my original post have you tried? If you have tried only one then try the other.

alexartd

@alexatd
It is likely the TFT is fine and the good news is that you have connected it up and got communication working. It is probable the display has a different driver chip fitted and thus the initialisation sequence that configures the display is not right.

Which of the two libraries in my original post have you tried? If you have tried only one then try the other.

You intend these library ?
https://github.com/Bodmer/TFT_S6D02A1
https://github.com/Bodmer/TFT_ST7735

I've this error during compile :
Arduino:1.8.5 (Windows 10), Scheda:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, 921600, 4M (3M SPIFFS)"

In file included from C:\Documents\Arduino\libraries\TFT_S6D02A1-master/TFT_S6D02A1.h:22:0,

                 from C:\Documents\Arduino\libraries\TFT_S6D02A1-master\examples\TFT_Clock_Digital_S6D02A1\TFT_Clock_Digital_S6D02A1.ino:31:

C:\Documents\Arduino\libraries\TFT_S6D02A1-master/TFT_FastPin.h:33:20: fatal error: avr/io.h: No such file or directory

 #include <avr/io.h>

                    ^

compilation terminated.

exit status 1
Errore durante la compilazione per la scheda NodeMCU 1.0 (ESP-12E Module).


Can you help me plese ?

alexartd

@alexatd
It is likely the TFT is fine and the good news is that you have connected it up and got communication working. It is probable the display has a different driver chip fitted and thus the initialisation sequence that configures the display is not right.

Which of the two libraries in my original post have you tried? If you have tried only one then try the other.

I've used this library:
https://github.com/Bodmer/TFT_ILI9163

but I've the wrong display view as in my photo.

bodmer

#44
Nov 15, 2017, 02:36 pm Last Edit: Nov 15, 2017, 02:37 pm by bodmer Reason: Forgot link!
You intend these library ?
https://github.com/Bodmer/TFT_S6D02A1
https://github.com/Bodmer/TFT_ST7735

I've this error during compile :
Arduino:1.8.5 (Windows 10), Scheda:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, 921600, 4M (3M SPIFFS)"


Can you help me plese ?
Those libraries are built to run on AVR processors (UNO, Mega, Leonaro etc) and will not compile on an ESP8266 (NodeMCU board).

Try the library here. Note that the are setup files inside the library that must be changed to suit your setup.

I am not sure how you got it running before with reversed text if you were using a NodeMCU!

Go Up