FTDI EVE - FT800 easy display development

This is quick start guide for all you guys trying to implement GUI on top of your arduino project. It will work with displays up to 512x512 in resoluton.

What is FT800?
It is practicaly an graphic card for a microcontroller. It can control your display with touch and even play some audio over connected speaker.

What display can I use for this?
You can use any display with standard FPC/FFC 54 or with FPC/FFC 40 LCD connector. You can buy display on ebay, aliexpress or everywhere else. I bought mine 272px*480px 4.3" and 40 pin connector for less than 15€.

Is touch screen an option?
Sure! Touch screen is fully supported by FT800. Not just that, you are managing touch input with higher level with tags. When you press button on LCD, FT800 will return you tag value (from 0 - 255) and not touch coordinates, which makes GUI development extremely easy! Wohoo.

How much processing power do I need for this chip?
Well, you don't need any processing power from arduino. Only processing power you will need is to send some data over SPI. The rest will be done on FT800.

Is it there a library available for arduino?
Yep it is! And it support many devices including UNO, Mega2560, Leonardo and DUE etc.

Is it expensive?
Its pretty much inexpensive. You can buy development module without LCD display for 30€ online. FT800 chip is few euros if you want to make your own board so it's not a deal braker.

Can I see some examples please?
Off course. Here is the video onyoutube. If you want more just search FT800, or even GAMEDUINO2 if you like it. GAMEDUINO2 is based on arduino and FT800 chip.

Get me more info!
Well much is written on offical site: FT800 site

Note! I don't guarantee that all code is correct. If I make some mistake and the code doesn't work, please let me know.[/]

Let's start!

First you will need to get development board like this and an LCD display like this.

If the hyperlink for LCD doesn't exist anymore, just search for LCD display in your preferable online store and buy one with 40 or 54 pin connector, preferably with QVGA or WQVGA resoluton.

I will not go trough wiring, cause different options are available. But in general you need to connect SPI MISO, MOSI and SCK to corresponding pins of ISP connector on arduino board and connect INT, CS and PD pins from FT800 to arduino digital output pins. Now connect VCC and GND and you are ready to go.

Download library here.

Install library like any other you already did. If you didn't just search google for it (or bing if you don't like google :smiley: ).

Now create a new sketch and copy-paste this code, we will go trough code later:

/*****************************************************************************
* Copyright (c) Future Technology Devices International 2014
* propriety of Future Technology devices International.
*
* Software License Agreement
*
* This code is provided as an example only and is not guaranteed by FTDI. 
* FTDI accept no responsibility for any issues resulting from its use. 
* The developer of the final application incorporating any parts of this 
* sample project is responsible for ensuring its safe and correct operation 
* and for any consequences resulting from its use.
*****************************************************************************/
/**
* @file                           HelloWorld.ino
* @brief                          Sketch to display hello world on FT800.
  Tested platform version: Arduino 1.0.4 and later
* @version                        0.1.0
* @date                           2014/17/05
*
*/


/* This application demonstrates the usage of FT800 library on VM800P4350 platform */

/* Arduino standard includes */
#include "SPI.h"
#include "Wire.h"

/* Platform specific includes */
#include "FT_VM800P43_50.h"

/* Global object for FT800 Implementation */
FT800IMPL_SPI FTImpl(FT_CS_PIN,FT_PDN_PIN,FT_INT_PIN);

/* Api to bootup ft800, verify FT800 hardware and configure display/audio pins */
/* Returns 0 in case of success and 1 in case of failure */
int16_t BootupConfigure()
{
 uint32_t chipid = 0;
 FTImpl.Init(FT_DISPLAY_RESOLUTION);//configure the display to the WQVGA

 delay(20);//for safer side
 chipid = FTImpl.Read32(FT_ROM_CHIPID);
 
 /* Identify the chip */
 if(FT800_CHIPID != chipid)
 {
 Serial.print("Error in chip id read ");
 Serial.println(chipid,HEX);
 return 1;
 }
 
 /* Set the Display & audio pins */
 FTImpl.SetDisplayEnablePin(FT_DISPENABLE_PIN);
 FTImpl.SetAudioEnablePin(FT_AUDIOENABLE_PIN); 
 FTImpl.DisplayOn(); 
 FTImpl.AudioOn();   
 return 0;
}

/* API to display Hello World string on the screen */
void HelloWorld()
{
 /* Change the below string for experimentation */
 const char Display_string[12] = "Hello World";
 
 /* Display list to display "Hello World" at the centre of display area */
 FTImpl.DLStart();//start the display list. Note DLStart and DLEnd are helper apis, Cmd_DLStart() and Display() can also be utilized.
 FTImpl.ColorRGB(0xFF,0xFF,0xFF);//set the color of the string to while color
 FTImpl.Cmd_Text(FT_DISPLAYWIDTH/2, FT_DISPLAYHEIGHT/2, 29, FT_OPT_CENTER, Display_string);//display "Hello World at the center of the screen using inbuilt font handle 29 "
 FTImpl.DLEnd();//end the display list
 FTImpl.Finish();//render the display list and wait for the completion of the DL
}

/* bootup the module and display "Hello World" on screen */
void setup()
{
 /* Initialize serial print related functionality */
 Serial.begin(9600);
 
 /* Set the Display Enable pin*/   
 Serial.println("--Start Application--");
 if(BootupConfigure())
 {
 //error case - do not do any thing
 }
   else
 {
 HelloWorld();
 }
 Serial.println("--End Application--");
}

/* Nothing in loop api */
void loop()
{
}

Note that when you install library, you will have this example included in folder "basic".
Lets go trough code now:

First you will need to include libraries for SPI and I2C communication. You will also need library for FT800 chip. I am using VM800C43A-N development board so I included "FT_VM800P43_50.h" library which support 4.3" WQVGA display I have too.

#include "SPI.h"
#include "Wire.h"
#include "FT_VM800P43_50.h"

Next we wan't to select pins for PD CS and INT. The pins in example are labeled as FT_CS_PIN, FT_PDN_PIN and FT_INT_PIN. I recomend you change this pins for lets say FT_CS_PIN will be digital output 10, FT_PDN_PIN will be digital pin 3 and FT_INT_PIN will be digital pin 5.

FT800IMPL_SPI FTImpl(10,3,5);

In the setup() we want to configure FT800 for boot-up. The code for boot-up is writen in the BootupConfigure() function. Here we can change our display resoluton:

FTImpl.Init(FT_DISPLAY_QVGA_320x240);  // For QVGA displays
FTImpl.Init(FT_DISPLAY_WQVGA_480x272);  // For WQVGA displays

In the BootupConfigure() we can also disable display ( FTImpl.DisplayOn(); or FTImpl.DisplayOff(); ) and audio with ( FTImpl.AudioOn(); or FTImpl.AudioOff(); ).

Now everything is set for displaying some items.
In this example we will show "Hello World" text on the display.

We create a new function called HelloWorld() and we call it once from setup(). Everytime we want to show something new on display we have to make list of orders for FT800. This can be done with this code:

FTImpl.DLStart();

FTImpl.DLEnd();

Between this two lines we write some code to show on the display. I will show you later, what can be done here.

So we are trying to display "Hello World" text here.

For this we create a new char array, that contains "Hello World" text.

const char Display_string[12] = "Hello World";

We want to make text appear white color:

FTImpl.ColorRGB(0xFF,0xFF,0xFF);

Where first 0xFF means red color, second 0xFF means green color and the last one means blue color. All colors full bright means white color.

Now its all set, we must send command for our "Hello World" text:

FTImpl.Cmd_Text(FT_DISPLAYWIDTH/2, FT_DISPLAYHEIGHT/2, 29, FT_OPT_CENTER, Display_string);

Where first argument in the function is x-coordinate, second is y-coordinate, third is font (you can choose from 16 to 32), fourth argument is layout of the text, corresponding to choosen x and y coordinates, and last argument means our text to display, so "Hello World".

And now finaly we can show our display list on the display:

FTImpl.Finish();

This will always be last order and will be coded just after end of display list ( FTImpl.DLEnd(); )

I told earlyer that you can choose different font for showing text. Here is image to show you different fonts you can choose:

Try to change font, its the 3rd argument in FTImpl.Cmd_Text() function :wink:

So now we know how to set everything up and show some text, lets try draw some lines!

Everything remains the same, we just add to our display list some orders to show lines:

FTImpl.ColorRGB(0xFF,0x00,0x00);					// Line color
FTImpl.LineWidth(7 * 16);							// Line width 2*7 = 14px 

FTImpl.Begin(FT_LINES);							// Begin drawing lines
FTImpl.Vertex2f(50*16, 100*16);						// First line start coordinates
FTImpl.Vertex2f(430*16, 100*16);  					// First line stop coordinates
FTImpl.Vertex2f(50*16, 172*16);						// Second line start coordinates
FTImpl.Vertex2f(430*16, 172*16); 						// Second line stop coordinates

Press upload and you will see now text with two lines. I think its quite easy to understand this code, so I will not try to make explanation. I will just give you a hint that the line will be red color. You know why?

So now you will say: "Hey you were talking about touch input in the first post!". Yep, so now that we know how to show some primitives, lets make touch enabled GUI.

We will continue with our project in the post #2, where we have some text showed.

If we want to use touch screen we need to calibrate it first. This can be done very easily with calibrate() functon

void Calibrate()
{  
 FTImpl.DLStart(); // Start display list
 FTImpl.ClearColorRGB(102, 179, 26); // Background color
 FTImpl.Clear(1,1,1);     // Background color set
 FTImpl.ColorRGB(0xff, 0xff, 0xff); // Font color
 FTImpl.Cmd_Text((FT_DISPLAYWIDTH/2), (FT_DISPLAYHEIGHT/2), 27, FT_OPT_CENTER, "Please press in the middle of circles"); // Show instructions
 FTImpl.Cmd_Calibrate(0); 
 FTImpl.Finish(); // Display list
}

This code has to be called after BootupConfigure() function is called in the setup(). You will need to perform this every time you will power on FT800 chip. There is an option to manualy set calibrate parameters, but that is for another post.

Now add a button to the HelloWorld() function:

void HelloWorld(int tagoption)
{
 /* Change the below string for experimentation */
 const char Display_string[12] = "Hello World";
 
 /* Display list to display "Hello World" at the centre of display area */
 FTImpl.DLStart();//start the display list. Note DLStart and DLEnd are helper apis, Cmd_DLStart() and Display() can also be utilized.
 FTImpl.ColorRGB(0xFF,0xFF,0xFF);//set the color of the string to while color
 FTImpl.Cmd_Text(FT_DISPLAYWIDTH/2, FT_DISPLAYHEIGHT/2, 29, FT_OPT_CENTER, Display_string);//display "Hello World at the center of the screen using inbuilt font handle 29 "

 // Here we want to create a button
 FTImpl.Tag(12); // This is tag value for button
 FTImpl.Cmd_Button((FT_DISPLAYWIDTH/4) - (50), (FT_DISPLAYHEIGHT*2/4) - (20), 100, 20, 26, tagoption, "Tag12");
 
 FTImpl.DLEnd();//end the display list
 FTImpl.Finish();//render the display list and wait for the completion of the DL
}

Note that we added tagoption in the function input ( HelloWorld(int tagoption) )

FTImpl.Tag(x); is an command to connect touch input of the following button ( FTImpl.Cmd_Button() ) with some value ( x ).

Also we added a button. First argument is x-coordinate of the button. Second is y-coordinate, third is width of a button in px, next is height of a button. Than we have font, that we want to be showed on the button (26). 6th argument is button appearing ( 0 means it is regular (3D effect), FT_OPT_FLAT means it is pressed (just flat without 3D effect) ). The last argument is just text to be showed on button.

If we compile this code and upload it to the arduino, we will now see a "Hello World" text on the screen and a button with "Tag12" written on.

Now we want to read touch input.

int tagval = sTagxy.tag;				// Read tag touch input

	int tagoption = 0;	
	if(12 == tagval)
	{
		tagoption = FT_OPT_FLAT;		// Flat, if button is pressed
		HelloWorld(tagoption);
	}
	else
	{
		tagoption = 0;
		HelloWorld(tagoption);			// 3D if it's not
	}

Copy and paste this code to the loop() function.

This won't work because we haven't declared sTagxy. So copy and paste this code right after #include statements:

sTagXY sTagxy;

Now we have complete code:

/*****************************************************************************
* Copyright (c) Future Technology Devices International 2014
* propriety of Future Technology devices International.
*
* Software License Agreement
*
* This code is provided as an example only and is not guaranteed by FTDI. 
* FTDI accept no responsibility for any issues resulting from its use. 
* The developer of the final application incorporating any parts of this 
* sample project is responsible for ensuring its safe and correct operation 
* and for any consequences resulting from its use.
*****************************************************************************/
/**
* @file                           HelloWorld.ino
* @brief                          Sketch to display hello world on FT800.
  Tested platform version: Arduino 1.0.4 and later
* @version                        0.1.0
* @date                           2014/17/05
*
*/


/* This application demonstrates the usage of FT800 library on VM800P4350 platform */

/* Arduino standard includes */
#include "SPI.h"
#include "Wire.h"

/* Platform specific includes */
#include "FT_VM800P43_50.h"

/* Global object for FT800 Implementation */
FT800IMPL_SPI FTImpl(10, 3, 5);

/* Api to bootup ft800, verify FT800 hardware and configure display/audio pins */
/* Returns 0 in case of success and 1 in case of failure */
int16_t BootupConfigure()
{
 uint32_t chipid = 0;
 FTImpl.Init(FT_DISPLAY_RESOLUTION);//configure the display to the WQVGA

 delay(20);//for safer side
 chipid = FTImpl.Read32(FT_ROM_CHIPID);
 
 /* Identify the chip */
 if(FT800_CHIPID != chipid)
 {
 Serial.print("Error in chip id read ");
 Serial.println(chipid,HEX);
 return 1;
 }
 
 /* Set the Display & audio pins */
 FTImpl.SetDisplayEnablePin(FT_DISPENABLE_PIN);
 FTImpl.SetAudioEnablePin(FT_AUDIOENABLE_PIN); 
 FTImpl.DisplayOn(); 
 FTImpl.AudioOn();   
 return 0;
}

void Calibrate()
{  
 FTImpl.DLStart(); // Start display list
 FTImpl.ClearColorRGB(102, 179, 26); // Background color
 FTImpl.Clear(1,1,1);     // Background color set
 FTImpl.ColorRGB(0xff, 0xff, 0xff); // Font color
 FTImpl.Cmd_Text((FT_DISPLAYWIDTH/2), (FT_DISPLAYHEIGHT/2), 27, FT_OPT_CENTER, "Please press in the middle of circles"); // Show instructions
 FTImpl.Cmd_Calibrate(0); 
 FTImpl.Finish(); // Display list
}

/* API to display Hello World string on the screen */
void HelloWorld(int tagoption)
{
 /* Change the below string for experimentation */
 const char Display_string[12] = "Hello World";
 
 /* Display list to display "Hello World" at the centre of display area */
 FTImpl.DLStart();//start the display list. Note DLStart and DLEnd are helper apis, Cmd_DLStart() and Display() can also be utilized.
 FTImpl.ColorRGB(0xFF,0xFF,0xFF);//set the color of the string to while color
 FTImpl.Cmd_Text(FT_DISPLAYWIDTH/2, FT_DISPLAYHEIGHT/2, 29, FT_OPT_CENTER, Display_string);//display "Hello World at the center of the screen using inbuilt font handle 29 "

 // Here we want to create a button
 FTImpl.Tag(12); // This is tag value for button
 FTImpl.Cmd_Button((FT_DISPLAYWIDTH/4) - (50), (FT_DISPLAYHEIGHT*2/4) - (20), 100, 20, 26, tagoption, "Tag12");
 
 FTImpl.DLEnd();//end the display list
 FTImpl.Finish();//render the display list and wait for the completion of the DL
}

/* bootup the module and display "Hello World" on screen */
void setup()
{
 /* Initialize serial print related functionality */
 Serial.begin(9600);
 
 /* Set the Display Enable pin*/   
 Serial.println("--Start Application--");
 if(BootupConfigure())
 {
  Calibrate();
  //error case - do not do any thing
 }
   else
 {
 HelloWorld();
 }
 Serial.println("--End Application--");
}

/* Nothing in loop api */
void loop()
{
	int tagval = sTagxy.tag;				// Read tag touch input

	int tagoption = 0;	
	if(12 == tagval)
	{
		tagoption = FT_OPT_FLAT;		// Flat, if button is pressed
		HelloWorld(tagoption);
	}
	else
	{
		tagoption = 0;
		HelloWorld(tagoption);			// 3D if it's not
	}
}

I try to use FT800 with Arduino Mega but it does not work.
In Arduino Pro Mini works fine! Do you have a solution?
Thank you!

Hello. Great post. I was wondering maybe you could help my with my problem. I cant find any information/example about Ft800 and arduino. How to, or what function i need to use to do something like menu button. By pressing button whole screen change and bring me to the 2nd page (for example)
I know ther is a function called switch but i dont know how to use it :confused: Please help :slight_smile:

athtest:
I try to use FT800 with Arduino Mega but it does not work.
In Arduino Pro Mini works fine! Do you have a solution?
Thank you!

IDE 1.5.6-R2

Oh wow! I was starting to get worried about the library not working. But 1.5.6 r2 did the trick. Thanks!

Hello, is it me or is there a problem with the latest libraries from FTDI for the FT800. Every example file I download from them is just loaded with errors, so it seems there might be a library missing containing some fundamental definitions.

I've downloaded and installed the apparent required library for my h/w (FTDI_V1.4.0_03272015(FT800).zip), which was it's own challenge as library names can't contain non-standard ASCII eg the ()... but even so, when compiling the most basic FT app the errors flow thick and fast, mostly relating to an undefined type "prog_uchar" that popups up throughout many of the FT header files. So there must be a header where this type is defined.... but not in any of the header files I have in my set of Arduino libraries.

I'm using Arduino 1.6.9 with a Mega2560.

Any suggestions anyone? Thanks in advance.

Again: IDE 1.5.6-R2

Ok.....thank you. It does seem a little counter-intuitive, almost "back to the future", I mean one might expect a LATER version of the s/w to be an improvement on the earlier....

Anyway, let me try it now and finally make some progress..

JUGmobile:
So now you will say: "Hey you were talking about touch input in the first post!". Yep, so now that we know how to show some primitives, lets make touch enabled GUI.

We will continue with our project in the post #2, where we have some text showed.

If we want to use touch screen we need to calibrate it first. This can be done very easily with calibrate() functon

void Calibrate()

{  
FTImpl.DLStart(); // Start display list
FTImpl.ClearColorRGB(102, 179, 26); // Background color
FTImpl.Clear(1,1,1);     // Background color set
FTImpl.ColorRGB(0xff, 0xff, 0xff); // Font color
FTImpl.Cmd_Text((FT_DISPLAYWIDTH/2), (FT_DISPLAYHEIGHT/2), 27, FT_OPT_CENTER, "Please press in the middle of circles"); // Show instructions
FTImpl.Cmd_Calibrate(0);
FTImpl.Finish(); // Display list
}




This code has to be called after BootupConfigure() function is called in the setup(). You will need to perform this every time you will power on FT800 chip. There is an option to manualy set calibrate parameters, but that is for another post.

Now add a button to the HelloWorld() function:


void HelloWorld(int tagoption)
{
/* Change the below string for experimentation */
const char Display_string[12] = "Hello World";

/* Display list to display "Hello World" at the centre of display area */
FTImpl.DLStart();//start the display list. Note DLStart and DLEnd are helper apis, Cmd_DLStart() and Display() can also be utilized.
FTImpl.ColorRGB(0xFF,0xFF,0xFF);//set the color of the string to while color
FTImpl.Cmd_Text(FT_DISPLAYWIDTH/2, FT_DISPLAYHEIGHT/2, 29, FT_OPT_CENTER, Display_string);//display "Hello World at the center of the screen using inbuilt font handle 29 "

// Here we want to create a button
FTImpl.Tag(12); // This is tag value for button
FTImpl.Cmd_Button((FT_DISPLAYWIDTH/4) - (50), (FT_DISPLAYHEIGHT*2/4) - (20), 100, 20, 26, tagoption, "Tag12");

FTImpl.DLEnd();//end the display list
FTImpl.Finish();//render the display list and wait for the completion of the DL
}




Note that we added tagoption in the function input ( HelloWorld(int tagoption) )

FTImpl.Tag(x); is an command to connect touch input of the following button ( FTImpl.Cmd_Button() ) with some value ( x ).

Also we added a button. First argument is x-coordinate of the button. Second is y-coordinate, third is width of a button in px, next is height of a button. Than we have font, that we want to be showed on the button (26). 6th argument is button appearing ( 0 means it is regular (3D effect), FT_OPT_FLAT means it is pressed (just flat without 3D effect) ). The last argument is just text to be showed on button.

If we compile this code and upload it to the arduino, we will now see a "Hello World" text on the screen and a button with "Tag12" written on.

Now we want to read touch input.



int tagval = sTagxy.tag; // Read tag touch input

int tagoption = 0;	
if(12 == tagval)
{
	tagoption = FT_OPT_FLAT;		// Flat, if button is pressed
	HelloWorld(tagoption);
}
else
{
	tagoption = 0;
	HelloWorld(tagoption);			// 3D if it's not
}



Copy and paste this code to the loop() function.

This won't work because we haven't declared sTagxy. So copy and paste this code right after #include statements:


sTagXY sTagxy;




Now we have complete code:


/*****************************************************************************

  • Copyright (c) Future Technology Devices International 2014
  • propriety of Future Technology devices International.
  • Software License Agreement
  • This code is provided as an example only and is not guaranteed by FTDI.
  • FTDI accept no responsibility for any issues resulting from its use.
  • The developer of the final application incorporating any parts of this
  • sample project is responsible for ensuring its safe and correct operation
  • and for any consequences resulting from its use.
    ***************************************************************************/
    /
  • @file                           HelloWorld.ino
  • @brief                          Sketch to display hello world on FT800.
     Tested platform version: Arduino 1.0.4 and later
  • @version                        0.1.0
  • @date                           2014/17/05

*/

/* This application demonstrates the usage of FT800 library on VM800P4350 platform */

/* Arduino standard includes */
#include "SPI.h"
#include "Wire.h"

/* Platform specific includes */
#include "FT_VM800P43_50.h"

/* Global object for FT800 Implementation */
FT800IMPL_SPI FTImpl(10, 3, 5);

/* Api to bootup ft800, verify FT800 hardware and configure display/audio pins /
/
Returns 0 in case of success and 1 in case of failure */
int16_t BootupConfigure()
{
uint32_t chipid = 0;
FTImpl.Init(FT_DISPLAY_RESOLUTION);//configure the display to the WQVGA

delay(20);//for safer side
chipid = FTImpl.Read32(FT_ROM_CHIPID);

/* Identify the chip */
if(FT800_CHIPID != chipid)
{
Serial.print("Error in chip id read ");
Serial.println(chipid,HEX);
return 1;
}

/* Set the Display & audio pins */
FTImpl.SetDisplayEnablePin(FT_DISPENABLE_PIN);
FTImpl.SetAudioEnablePin(FT_AUDIOENABLE_PIN);
FTImpl.DisplayOn();
FTImpl.AudioOn();  
return 0;
}

void Calibrate()
{  
FTImpl.DLStart(); // Start display list
FTImpl.ClearColorRGB(102, 179, 26); // Background color
FTImpl.Clear(1,1,1);     // Background color set
FTImpl.ColorRGB(0xff, 0xff, 0xff); // Font color
FTImpl.Cmd_Text((FT_DISPLAYWIDTH/2), (FT_DISPLAYHEIGHT/2), 27, FT_OPT_CENTER, "Please press in the middle of circles"); // Show instructions
FTImpl.Cmd_Calibrate(0);
FTImpl.Finish(); // Display list
}

/* API to display Hello World string on the screen /
void HelloWorld(int tagoption)
{
/
Change the below string for experimentation */
const char Display_string[12] = "Hello World";

/* Display list to display "Hello World" at the centre of display area */
FTImpl.DLStart();//start the display list. Note DLStart and DLEnd are helper apis, Cmd_DLStart() and Display() can also be utilized.
FTImpl.ColorRGB(0xFF,0xFF,0xFF);//set the color of the string to while color
FTImpl.Cmd_Text(FT_DISPLAYWIDTH/2, FT_DISPLAYHEIGHT/2, 29, FT_OPT_CENTER, Display_string);//display "Hello World at the center of the screen using inbuilt font handle 29 "

// Here we want to create a button
FTImpl.Tag(12); // This is tag value for button
FTImpl.Cmd_Button((FT_DISPLAYWIDTH/4) - (50), (FT_DISPLAYHEIGHT*2/4) - (20), 100, 20, 26, tagoption, "Tag12");

FTImpl.DLEnd();//end the display list
FTImpl.Finish();//render the display list and wait for the completion of the DL
}

/* bootup the module and display "Hello World" on screen /
void setup()
{
/
Initialize serial print related functionality */
Serial.begin(9600);

/* Set the Display Enable pin*/  
Serial.println("--Start Application--");
if(BootupConfigure())
{
 Calibrate();
 //error case - do not do any thing
}
  else
{
HelloWorld();
}
Serial.println("--End Application--");
}

/* Nothing in loop api */
void loop()
{
int tagval = sTagxy.tag; // Read tag touch input

int tagoption = 0;	
if(12 == tagval)
{
	tagoption = FT_OPT_FLAT;		// Flat, if button is pressed
	HelloWorld(tagoption);
}
else
{
	tagoption = 0;
	HelloWorld(tagoption);			// 3D if it's not
}

}

I ran your complete code in the end of post #3
and got this error

exit status 1
Error compiling for board Arduino/Genuino Uno.