1.2 KiB
1.2 KiB
Show String
Show a string on the LED screen one character at a time (scrolling from left to right).
basic.showString("Hello!")
Parameters
text
- a String- (optional)
ms
- Number; the time (in milliseconds) before scrolling left by one LED; the larger the number, the slower the scroll
Examples:
To display Hello:
basic.showString("Hello")
To display the content of a string variable:
let s = "Hi"
basic.showString(s)
Other show functions
- use show number to show a number on the screen
- use show animation to show a series of images on the screen
Lessons
answering machine, rock paper scissors, love meter, digital pet