App Lab Documentation

ledScreen.scrollString

Category:micro:bit

Will make text, numbers and punctuation appear on the LED screen. The text will scroll from left to right. In order to be displayed on the LEDs text must be placed inside of quotation marks.

Examples

Name Badge

Create a name tag using the ledscreen.scrollString(string) to display your name on the LED Screen

ledScreen.scrollString("Kevin");

Are you Happy or Sad?

Respond with how you are feeling using worlds and/or symbols to display text to represent the emotions your are feeling.

  • Button A → Happy :)
  • Button B → Sad :(
onBoardEvent(buttonA, "down", function() {
  ledScreen.scrollString("Happy :)");
});


onBoardEvent(buttonB, "down", function() {
  ledScreen.scrollString("Sad :(");
});

Syntax

ledscreen.scrollString(string)

Parameters

NameTypeRequired?Description
StringString

Use letters, numbers, and punctuation inside of quotes to display on LED screen

Tips

Must place text inside of “ “ in order to display on screen

Found a bug in the documentation? Let us know at support@code.org.