4f70d341e4
* Start on the 'brick' api topics * Add the delay to clear screen example * Better output for clearsceen example
427 B
427 B
clear Screen
Clear any text or numbers displayed on the screen. The screen will be blank.
brick.clearScreen();
Example
Clear the screen after displaying the message.
brick.showString("This message will", 1);
brick.showString("self-destruct in:", 2);
brick.showString("seconds", 5);
for (let i = 0; i < 10; i++) {
brick.showNumber(10 - i, 4);
loops.pause(1000);
}
brick.clearScreen();