Skip to content

Instantly share code, notes, and snippets.

@lastreezy
lastreezy / clearScreen.ino
Created February 22, 2016 09:22 — forked from THEtheChad/clearScreen.ino
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
}