Reference   Language | Libraries | Comparison | Changes

Robot

clearScreen()

Description

Fill the entire screen with the background color. Default is black.

Syntax

Robot.clearScreen();

Parameters

none

Returns

none

Examples

#include <ArduinoRobot.h>

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

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

  Robot.clearScreen();//empty the screen
  delay(2000);
}

See also

Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.

Share