Hello
I am posting a library (which is still "work in progress") for TFT controllers in subject.
I wrote it in mikroC for PIC18F8722, communication is in 8bit mode.
It has been tested, but please forgive me, some comments are in Serbian and some functions are still not finished, but still enough for start.
Also, if you do a
TFT_Reset();
OcitanID = TFT_readID(0x00);
switch (OcitanID){
case 0x1121: S6D1121_Init(); break;
case 0x9328: ILI9328_Init(); break;
}
TFT_Address_set (0,0,239,319);
TFT_TFTTest();
It will first read ID of a TFT and then init TFT according to read ID.
Also, this should be included
typedef const struct _font_char_info {
unsigned char Charwidth;
unsigned int Offset;
}FONT_CHAR_INFO;
////////////////////////////////////////////////////////////////////////////////
typedef const struct _font_info {
unsigned int CharacterHeight;
char StartCharacter;
char EndCharacter;
signed char SpaceWidthPixels;
const FONT_CHAR_INFO *Descriptors;
const char *Bitmaps;
}FONT_INFO;
I used TheDot Factory for font creation
DONT FORGET:
I used LF - 3.3V version of PIC CHIP! This displays should be supplied with 3.3V!! (supply can be 5V because there is a regulator on board, but data bus....)
Included - two photos to demonstrate how TFT works...
I am open for suggestions, comments, improvements...