pxt-calliope/docs/reference/basic/show-string.md
Galen Nickel e20ac7f992 Fix a few bugs found by translators ()
* Fix a few bugs found by translators

* Edits and hint block

* Typo
2018-01-30 08:54:13 -08:00

38 lines
1.0 KiB
Markdown

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