v.0.2.3 ColorSerial, more usage
This commit is contained in:
@@ -451,4 +451,11 @@ void ColorSerial::weatherCondition(int code, const char *customLabel)
|
||||
Serial.print(condition);
|
||||
Serial.print(RESET);
|
||||
Serial.println();
|
||||
}
|
||||
}
|
||||
|
||||
// Terminal Control Methods
|
||||
void ColorSerial::clearScreen()
|
||||
{
|
||||
Serial.print("\033[2J"); // Clear entire screen
|
||||
Serial.print("\033[H"); // Move cursor to home position (0,0)
|
||||
}
|
||||
|
||||
@@ -44,6 +44,8 @@ public:
|
||||
static const char *BOX_DOUBLE_VERT;
|
||||
static const char *BOX_SINGLE_VERT;
|
||||
|
||||
static void clearScreen();
|
||||
|
||||
// Main Logging Methods
|
||||
static void success(const char *message, const char *details = "");
|
||||
static void error(const char *message, const char *details = "");
|
||||
|
||||
Reference in New Issue
Block a user