Thanks for making the source code for the TFT library available. I am trying to use it to drive a display that uses the ILI9341 display controller.
I have created the code for assignment of the correct pins to drive the display as called for in the HELP library documentation.
I am not having much success with the library - although with my own code, I managed to get rectangles on the display to light up and change colors - so fairly certain the display and connections are OK.
With the library code, the most I have gotten thus far is the screen to light up white (should be black - so suspect initialization is the problem).
However, I examine the library code and believe I understand most of it for that controller. However there are two variables/constants that are used that I can not find the definition for in the library. They are:
"Is_TFT_Set()" and "Is_TFT_Rotated_180". Of the two variables, the first is most important.
In the ILI9341 8 bit initialization routine - procedure TFT_init_ILI9341_8bit()
there is as a very important "if" statement
Code: Select all
if (Is_TFT_Set()<>1 then
begin
TFT_Set_Index_Ptr := @TFT_Set_Index;
TFT_Write_Command_Prt := @TFT_Write_Command;
TFT_Write_Data_Ptr := @TFT_Write_Data;
end;
The problem is I don't know what the variable is associated with nor how it is set or not set.
Could you help me understand what these two variables do and why/how they are set?
Thanks