I have a problem with TFT 1.44 "SPI v2.1, the screen controls the driver ILI9163, so at least the result of a description, where I buy it. Any attempt to connect ends up shifting the displayed items by about 30 pixels. I've tried several libraries, and nothing else .. .
I hope that the photos clearly shows something to you and you can help me. The codes are standard examples of libraries ILI9163C.h and Adafruit_GFX.h
david_prentice:
The first 128x128 displays had a hardware problem. So libraries had a software fix. Look in the header file for a define called OFFSET.
Nowadays the 128x128 are 100% fine. Make OFFSET 0 and everything should run ok.
I am not aware of any library called "ILI9163C.h"
Sumotoy's library is called "TFT_ILI9163C.h"
It looks as if you are sending 5V GPIO logic. I would be happier with 3.3V logic.
David.
I'm not as fluent in programming. I really do not advise it to themselves with it.
Did you mean to add the command "#define __OFFSET 0"?
If so, unfortunately, it did not work
The values defined in the example looks like this:
// Color definitions
0x0000 #define BLACK #define BLUE 0x001F #define RED 0xF800 #define GREEN 0x07E0 #define CYAN 0x07FF #define MAGENTA 0xF81F #define YELLOW 0xFFE0 #define WHITE 0xFFFF
It should be changed in the offset TFT_ILI9163C_settings.h!
I have the black pcb. The offset was already set to 0. It still did not work. Then I changed the pcb red to 0 instead of 32 and it works great !!
Hello
Chip_x
This particular display has a design error! The controller has 3 pins to configure to constrain
the memory and resolution to a fixed dimension (in that case 128x128) but they leaved those pins
configured for 128x160 so there was several pixel memory addressing problems.
I solved by setup several parameters that dinamically fix the resolution as needed so below
the parameters for this diplay. If you have a strain or a correct display (can happen with chinese)
you can copy those parameters and create setup for different displays.
*/ #define _TFTWIDTH 128//the REAL W resolution of the TFT #define _TFTHEIGHT 128//the REAL H resolution of the TFT #define _GRAMWIDTH 128 #define _GRAMHEIGH 160//160 #define _GRAMSIZE _GRAMWIDTH * _GRAMHEIGH//*see note 1 #define __COLORSPC 1// 1:GBR - 0:RGB #define __GAMMASET3 //uncomment for another gamma #define __OFFSET 0//*see note 2 THIS!!! before was 32
//Tested! #elif defined (144_BLACK_PCB) #define _TFTWIDTH 128//the REAL W resolution of the TFT #define _TFTHEIGHT 128//the REAL H resolution of the TFT #define _GRAMWIDTH 128 #define _GRAMHEIGH 128 #define _GRAMSIZE _GRAMWIDTH * _GRAMHEIGH//*see note 1 #define __COLORSPC 1// 1:GBR - 0:RGB #define __GAMMASET1 //uncomment for another gamma #define __OFFSET 0
//not tested #elif defined (22_RED_PCB)
Hi everyone
i am use the display (1.44 spi 128*128 v1.0 red pcb and st7735R I think it's one of the wrong products )
i had the same problem.
i solved by setting offset to 0.
I installed the sample clock program.
second handle in the right place.(As shown in the picture) but the clock picture 3 pixels shifted to the left.