Create scrolling text for BBC micro:bit
Simulink Coder Support Package for BBC micro:bit/LED
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.
A maximum of 254 characters can be displayed.
Only capital letters can be displayed.
String— Input text to be displayed
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.
Out— Output data
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.
Scroll speed (1–10)— Scroll text speed
5(default) | any integer from 1 to 10, inclusive
The speed at which you want the text to scroll. A higher number results in a faster scroll speed.