Add Emulator Support (#35)

* Add emulator

* Update limit for ESPM API

* use params

---------

Co-authored-by: Alex Resnick <adr8282@gmail.com>
This commit is contained in:
Alex Resnick
2025-09-14 15:44:50 -05:00
committed by GitHub
parent b82e904cb1
commit a5a9398c5c
8 changed files with 13 additions and 14 deletions

View File

@@ -1,4 +1,8 @@
from rgbmatrix import RGBMatrix, RGBMatrixOptions
import os
if os.getenv("EMULATOR", "false") == "true":
from RGBMatrixEmulator import RGBMatrix, RGBMatrixOptions
else:
from rgbmatrix import RGBMatrix, RGBMatrixOptions
from PIL import Image, ImageDraw, ImageFont
import time
from typing import Dict, Any, List, Tuple