Show String
Show a number on the LED screen. It will slide left if it is bigger than the screen.
basic.showString("Hello!")
Parameters
text
is a String. It can contain letters, numbers, and punctuation.interval
is an optional Number. It means the number of milliseconds before sliding the String left by one LED each time. Bigger intervals make the sliding slower.
Examples:
To show the word Hello:
basic.showString("Hello")
To show what is stored in a String variable:
let s = "Hi"
basic.showString(s)
Other show functions
- Use show number to show a number on the LED screen.
- Use show animation to show a group of pictures on the screen, one after another.