Skip to content

Instantly share code, notes, and snippets.

@crunchie84
Created July 7, 2017 13:21
Show Gist options
  • Save crunchie84/4aa7c1c29e94aef4f28a1f3a9efedc92 to your computer and use it in GitHub Desktop.
Save crunchie84/4aa7c1c29e94aef4f28a1f3a9efedc92 to your computer and use it in GitHub Desktop.

LCD Digits

Your task is to create an LCD string representation of an integer value using a 3x3 grid of space, underscore, and pipe characters for each digit. Each digit is shown below (using a dot instead of a space)

._.   ...   ._.   ._.   ...   ._.   ._.   ._.   ._.   ._.
|.|   ..|   ._|   ._|   |_|   |_.   |_.   ..|   |_|   |_|
|_|   ..|   |_.   ._|   ..|   ._|   |_|   ..|   |_|   ..|

Example: 910

._. ... ._.
|_| ..| |.|
..| ..| |_|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment