From 4cf75b4b1149ffec8a8d84d805462130554e72db Mon Sep 17 00:00:00 2001 From: tfaour Date: Tue, 21 Jul 2026 14:16:25 -0400 Subject: [PATCH] Update server/app/image_pipeline.py Tweaked Palette... we might need to reverse this! --- server/app/image_pipeline.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/server/app/image_pipeline.py b/server/app/image_pipeline.py index 8a80716..37a09af 100644 --- a/server/app/image_pipeline.py +++ b/server/app/image_pipeline.py @@ -50,12 +50,18 @@ def logical_to_native(x: float, y: float, orientation: str) -> tuple[int, int]: # exact color primaries for this panel. Tune them once you can compare a # rendered test image against the real panel. PALETTE_RGB = [ - (0, 0, 0), # BLACK - (255, 255, 255), # WHITE - (255, 219, 0), # YELLOW - (207, 0, 15), # RED - (0, 39, 133), # BLUE - (0, 133, 55), # GREEN + # (0, 0, 0), # BLACK + # (255, 255, 255), # WHITE + # (255, 219, 0), # YELLOW + # (207, 0, 15), # RED + # (0, 39, 133), # BLUE + # (0, 133, 55), # GREEN + (0, 0, 0), + (255, 255, 255), + (255, 243, 56), + (191, 0, 0), + (100, 64, 255), + (67, 138, 28) ] # The panel's actual 4-bit color codes (see firmware/components/epd7in3e),