2016-03-26 00:47:20 +01:00
# Show String
2019-12-02 05:58:26 +01:00
Show a string on the [LED screen ](/device/screen ). It will scroll to left if it's bigger than the screen.
2016-03-26 00:47:20 +01:00
```sig
2019-12-02 05:58:26 +01:00
basic.showString("hi!")
2016-03-26 00:47:20 +01:00
```
2019-12-02 05:58:26 +01:00
## Parameters
2016-03-26 00:47:20 +01:00
2019-12-02 05:58:26 +01:00
* `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.
2016-03-26 00:47:20 +01:00
2019-12-02 05:58:26 +01:00
## Examples:
2016-03-26 00:47:20 +01:00
2016-05-20 01:50:02 +02:00
To show the word **Hello** :
2016-03-26 00:47:20 +01:00
```blocks
basic.showString("Hello")
```
2019-12-02 05:58:26 +01:00
To show what is stored in a [String ](/types/string ) variable:
2016-03-26 00:47:20 +01:00
```blocks
let s = "Hi"
basic.showString(s)
```
2019-12-02 05:58:26 +01:00
## Other show functions
2016-03-26 00:47:20 +01:00
2016-05-20 01:50:02 +02:00
* 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.
2016-03-26 00:47:20 +01:00
2019-12-02 05:58:26 +01:00
## See also
2016-03-26 00:47:20 +01:00
2019-12-02 05:58:26 +01:00
[String ](/types/string ), [show number ](/reference/basic/show-number ), [show animation ](/reference/basic/show-animation )
2016-03-26 00:47:20 +01:00