Arduino Function: RobotControl.debugPrint

Description

This method is used to print and refresh a value to the LCD screen. You need to first initialize the LCD screen in setup() using calling Robot.readyLCD() before calling this function. If no starting point is defined, texts will be shown as defaults, starting at 0,0, the top left of the screen.

Syntax

Robot.debugPrint(toPrint)
Robot.debugPrint(toPrint, x, y)

Parameters

toPrint: value to be printed. Must be int or long. *x: x axis of starting position on the screen. *y: y axis of starting position on the screen.

Examples

#include 

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

void loop(){
  int val=Robot.analogRead(TK0); //Get analog value from port TK0 on top board.
  Robot.debugPrint(val); //No need to erase the old value
  delay(100);
}


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