Hi, whoever can help that would be great!
I have a 3.5 inch TFT color display screen with driver ILI9486. Whenever I upload the code, the screen does nothing but stays white.
I am using the <LCDWIKI_GUI.h> and <LCDWIKI_KBV.h> libraries. The code I am using is an example from a video. However, I have edited the code because when I verified it, there were many bugs.
The code is as follows:
#include <LCDWIKI_GUI.h>
#include <LCDWIKI_KBV.h>
#define BLACK 0x0000
#define BLUE 0x001F
#define RED 0xF800
#define GREEN 0x07E0
#define CYAN 0x07FF
#define MAGENTA 0xF81F
#define YELLOW 0xFFE0
#define WHITE 0xFFFF
void setup()
{
int mylcd_Init_LCD ();
int mylcd_Fill_Screen(BLACK);
}
void loop()
{
int mylcd_Set_Text_Mode(0);
//display 1 times string
int mylcd_Fill_Screen(0x0000);
int mylcd_Set_Text_colour1 (RED);
int mylcd_Set_Text_Back_colour(BLACK);
int mylcd_Set_Text_Size(1);
int mylcd_Print_String("Hello World!", 0, 0);
int mylcd_Print_Number_Float(01234.56789, 2, 0, 8, '.', 0, ' ');
int mylcd_Print_Number_Int(0xDEADBEF, 0, 16, 0, ' ',16); //mylcd.Print_String("DEADBEF", 0, 16);
int mylcd_Set_Text_colour2 (GREEN); //display 2 times string
int mylcd_Set_Text_Size2 (2);
int mylcd_Print_String2 ("Hello World!", 0, 40);
int mylcd_Print_Number_Float2 (01234.56789, 2, 0, 56, '.', 0, ' ');
int mylcd_Print_Number_Int2 (0xDEADBEF, 0, 72, 0, ' ',16);
//mylcd.Print_String("DEADBEEF", 0, 72);
//display 3 times string
int mylcd_Set_Text_colour3 (BLUE);
int mylcd_Set_Text_Size3 (3);
int mylcd_Print_String3 ("Hello World!", 0, 104);
int mylcd_Print_Number_Float3 (01234.56789, 2, 0, 128, '.', 0, ' ');
int mylcd_Print_Number_Int3 (0xDEADBEF, 0, 152, 0, ' ',16);
// mylcd.Print_String("DEADBEEF", 0, 152);
//display 4 times string
int mylcd_Set_Text_colour4 (WHITE);
int mylcd_Set_Text_Size4 (4);
int mylcd_Print_String4 ("Hello!", 0, 192);
//display 5 times string
int mylcd_Set_Text_colour5 (YELLOW);
int mylcd_Set_Text_Size5 (5);
int mylcd_Print_String5 ("Hello!", 0, 224);
//display 6 times string
int mylcd_Set_Text_colour6 (RED);
int mylcd_Set_Text_Size6 (6);
int mylcd_Print_String6 ("Hello!", 0, 266);
delay(3000);
}
Thank you!