Skip to content

Instantly share code, notes, and snippets.

@THEtheChad
Created May 8, 2013 11:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save THEtheChad/5539958 to your computer and use it in GitHub Desktop.
Save THEtheChad/5539958 to your computer and use it in GitHub Desktop.
Series of commands to clear the console screen on the Arduino.
void clearAndHome()
{
Serial.write(27);
Serial.print("[2J"); // clear screen
Serial.write(27); // ESC
Serial.print("[H"); // cursor to home
}
@lastreezy
Copy link

bro does the 4th line clear the serial interface of arduino?

@InTheFlipside
Copy link

Don't work anymore, i'm searching for another code :(

@Driegos
Copy link

Driegos commented Nov 1, 2019

anero kokcta

@fernandobelissimo
Copy link

it works, but with another terminal program

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment