pxt-calliope/docs/reference/basic/show-string.md
2016-06-11 22:28:57 -04:00

1.1 KiB

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.
  • ms 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

See also

String, show number, show animation