PCjs Machines

Home of the original IBM PC emulator for browsers.

Logo

Text Scroller

This page demonstrates the ability of the LED device to create scrolling LED displays.

You can enter new messages in the Diagnostics window using the s command (eg, s Hello World!).

Stopped

You may have noticed that the LED message set above (“Happy New Year!”) also includes some special characters (“$c$30b$30o$30b$30o$90s”) that aren’t displayed. The $ symbol is used to embed “command codes” into a message.

Current command codes include:

The default operation is to scroll the display, adding new symbols to the vacated end of the display as needed. When all symbols in the current message have been processed, processing returns to the beginning of the message.

To change the default operation at any point, insert one or more command codes into the string. Commands may also include a count immediately after the $ (e.g., $90s), which determines how many “steps” (cycles) that command should remain in effect before advancing to the next symbol (or command) in the message. So, for example, $90s will scroll the display 90 times (without adding new symbols) before continuing to the next symbol. The default count for an operation is 1.

For convenience, commands that don’t need a count (e.g., $b and $o) automatically treat the count as a pause ($p). In other words, $30b is equivalent to $b$30p.

Finally, if you want to embed $ as a normal symbol, use two of them ($$).

More commands will be added over time. This was just an initial set to get the ball rolling – or rather, to get it scrolling.