LED Library - Display Character _

Issue #52 resolved
Turgut Guneysu created an issue

Hi John,

LED library 'display character __” command displays letter & numbers when directly written into the block.

However, when a variable is used for the character to be displayed, it only works with LETTERS, and not with numbers.

TG

Comments (2)

  1. John Maloney repo owner

    The input to that block must be a string, typically containing a single character. (If the string is longer, only the first character is displayed). So you need to turn a digit (0-9) into a one-character string like this:

    This won’t work if n > 9; you’ll get some non-digit Unicode character. To display multi-digit numbers, use the “scroll number” block in the “Scrolling” library.

  2. Log in to comment