Arduino Function: RobotControl.beginTFT

Description

This method initializes the TFT module. All general TFT functions dependend on this.

Syntax

Robot.beginTFT()
Robot.beginTFT(foreGround, backGround)

Parameters

foreGround: set a universal foreground color. Default is black. *backGround: set a universal background color. Default is white.

Examples

#include 

void setup(){
  Robot.begin();
  Robot.beginTFT();//Initialize the TFT module
}

void loop(){
  Robot.fill(255,255,255);
  Robot.text("Hello World",0,0);
  delay(2000);

  Robot.fill(0,0,0);
  Robot.text("Hello World",0,0,false);//It's necessary to erase the old text, before showing new text

  Robot.fill(255,255,255);
  Robot.text("I am a robot",0,0);
  delay(3000);

  Robot.fill(0,0,0);
  Robot.text("I am a robot",0,0);
}


Based on the reference originally written by Arduino Community,  wiring.org.co and  arduino.cc