pxt-calliope/docs/reference/basic/show-string.md
2016-04-13 08:27:45 -07:00

1.1 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

Lessons

answering machine, rock paper scissors, love meter, digital pet

See also

String, string functions, show number, show animation