Main Content

LED Text Scroll

Create scrolling text for BBC micro:bit

  • LED Text Scroll block

Libraries:
Simulink Coder Support Package for BBC micro:bit/LED

Description

The LED Text Scroll block creates scrolling text from an input string. The scrolling text can then be sent as input to a 5x5 LED Matrix block. The 5x5 LED Matrix block then displays the text on the micro:bit board.

Limitations

  • A maximum of 254 characters can be displayed.

  • Only capital letters can be displayed.

Ports

Input

expand all

The port accepts data as an N-by-1 or 1-by-N array. The data can include capital letters and the numerals 0-9. Any other character is displayed as a minus sign on the micro:bit.

Output

expand all

The port outputs data as a 2-D, 5-by-5 vector array, which can be sent to a 5x5 LED Matrix block. The 5x5 LED Matrix block can then take that data and display the text on micro:bit.

Parameters

expand all

The speed at which you want the text to scroll. A higher number results in a faster scroll speed.

Version History

Introduced in R2017b

See Also

External Websites