4f70d341e4
* Start on the 'brick' api topics * Add the delay to clear screen example * Better output for clearsceen example
23 lines
427 B
Markdown
23 lines
427 B
Markdown
# clear Screen
|
|
|
|
Clear any text or numbers displayed on the screen. The screen will be blank.
|
|
|
|
```sig
|
|
brick.clearScreen();
|
|
```
|
|
|
|
## Example
|
|
|
|
Clear the screen after displaying the message.
|
|
|
|
```blocks
|
|
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();
|
|
```
|