separate more

This commit is contained in:
2026-06-21 00:35:31 -04:00
parent 6cf21cbeba
commit b24d6563a9
4 changed files with 34 additions and 28 deletions
+9
View File
@@ -0,0 +1,9 @@
from enum import Enum
# --- Pre-built colors ---
class Colors(Enum):
WHITE = (255, 255, 255)
YELLOW = (255, 200, 0)
RED = (255, 50, 50)
SABRES_BLUE = (0, 135, 48)
SABRES_GOLD = (252, 20, 210)
+23
View File
@@ -0,0 +1,23 @@
import os
from pathlib import Path
from rgbmatrix import graphics
# --- Default vars ---
SCRIPT_DIR = Path(__file__).parent.resolve()
ASSET_DIR = os.path.join(SCRIPT_DIR, "assets")
LOGO_DIR = os.path.join(ASSET_DIR, "logos")
# --- importable data dict ---
data = {
"paths": {
"SCRIPT_DIR": SCRIPT_DIR,
"ASSET_DIR": ASSET_DIR,
"LOGO_DIR": LOGO_DIR
},
"fonts": {
"font": graphics.Font().LoadFont(os.path.join(ASSET_DIR, "fonts/7x13.bdf")),
"font_small": graphics.Font().LoadFont(os.path.join(ASSET_DIR, "fonts/5x7.bdf")),
"font_big": graphics.Font().LoadFont(os.path.join(ASSET_DIR, "fonts/9x18.bdf"))
}
}