Skip to main content

Character Codes

The split-flap display uses character codes to represent letters, numbers, symbols, and weather icons. This reference lists all available codes.

Letters (Codes 1–26)

CodeCharacterCodeCharacter
1A14N
2B15O
3C16P
4D17Q
5E18R
6F19S
7G20T
8H21U
9I22V
10J23W
11K24X
12L25Y
13M26Z

Numbers (Codes 27–36)

CodeCharacter
271
282
293
304
315
326
337
348
359
360

Special Characters

CodeCharacterDescription
0 Blank/Space
37!Exclamation
38@At sign
39#Hash
40$Dollar
41(Open paren
42)Close paren
44-Hyphen
46+Plus
47&Ampersand
48=Equals
49;Semicolon
50:Colon
52'Apostrophe
53"Quote
54%Percent
55,Comma
56.Period
59/Slash
60?Question
62°Degree

Color Codes (63–70)

These codes display solid colored tiles:

CodeColorCommon Use
63🟥 RedAlerts, hot temperatures
64🟧 OrangeWarm temperatures
65🟨 YellowComfortable, warnings
66🟩 GreenGood status, success
67🟦 BlueCold temperatures
68🟪 VioletVery cold, accents
69⬜ WhiteBackgrounds
70⬛ BlackBackgrounds

See the Color Guide for detailed usage.

Weather Symbols

The board approximates weather icons using available characters:

CharacterWeather Condition
*☀️ Sunny / Clear
%⛅ Partly Cloudy
O☁️ Cloudy / Overcast
/🌧️ Rain
!⛈️ Thunderstorm
~🌫️ Fog

Using Character Codes in Code

from src.board_chars import BoardChars

# Convert text to character codes
codes = BoardChars.text_to_codes("HELLO")
# Result: [8, 5, 12, 12, 15]

# Convert codes back to text
text = BoardChars.codes_to_text([8, 5, 12, 12, 15])
# Result: "HELLO"

Board Dimensions

The display is a grid of 6 rows × 22 columns = 132 characters total.

Next Steps