Show String

Show a string on the LED screen. It will scroll to left if it’s bigger than the screen.

Hello!showstring
function showString(text: string, interval?: number): void;

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:

Helloshowstringon start

To show what is stored in a String variable:

Hisshowstringsetstoon start

Other show functions

See also

String, show number, show animation

Hisshowstringsetstoon start