From 0ed6d9495e1f9aaaee5582815aed47852df6e806 Mon Sep 17 00:00:00 2001 From: Cyd Date: Wed, 22 Jul 2026 16:48:54 -0500 Subject: [PATCH] Replica: swap G/B HUB75 pins for panels with green/blue LEDs exchanged Manufacturer confirmed these matrices have the green and blue LEDs swapped; orange (255,96,0) rendered purple. Exchange the G and B pin assignments so every color is corrected at the wire level and the firmware's color values stay identical to vPLASMA's. Co-Authored-By: Claude Fable 5 --- .../replica/MatrixPortalPlasma/MatrixPortalPlasma.ino | 7 ++++--- PlasmaNew/replica/README.md | 6 ++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/PlasmaNew/replica/MatrixPortalPlasma/MatrixPortalPlasma.ino b/PlasmaNew/replica/MatrixPortalPlasma/MatrixPortalPlasma.ino index 9d4b718..cf7de66 100644 --- a/PlasmaNew/replica/MatrixPortalPlasma/MatrixPortalPlasma.ino +++ b/PlasmaNew/replica/MatrixPortalPlasma/MatrixPortalPlasma.ino @@ -19,9 +19,10 @@ #include "demo_screens.h" // ---- HUB75 pins for the Adafruit Matrix Portal S3 ------------------------ -// These are Adafruit's published Matrix Portal S3 pins (Protomatter examples). -// Verify against your installed library version if the panel misbehaves. -static uint8_t rgbPins[] = {42, 41, 40, 38, 39, 37}; +// Adafruit's published Matrix Portal S3 pins (Protomatter examples), except: +// these panels have the green and blue LEDs swapped (manufacturer-confirmed), +// so the G and B pins are exchanged here. Order is R1,G1,B1,R2,G2,B2. +static uint8_t rgbPins[] = {42, 40, 41, 38, 37, 39}; static uint8_t addrPins[] = {45, 36, 48, 35}; // A,B,C,D — 4 lines for 32-high (1/16 scan) static uint8_t clockPin = 2; static uint8_t latchPin = 47; diff --git a/PlasmaNew/replica/README.md b/PlasmaNew/replica/README.md index 928c317..432fc66 100644 --- a/PlasmaNew/replica/README.md +++ b/PlasmaNew/replica/README.md @@ -45,8 +45,10 @@ Arduino IDE (or `arduino-cli`): `plasma_fonts.h`, `demo_screens.h` beside it) and Upload. The HUB75 pin arrays at the top of the `.ino` are Adafruit's published Matrix -Portal S3 values; if the panel garbles, verify them against your installed -Protomatter version. +Portal S3 values — except the G and B pins, which are exchanged because these +panels have the green and blue LEDs swapped (manufacturer-confirmed; symptom +was orange rendering as purple). If a different panel garbles, verify the +arrays against your installed Protomatter version. ## Using it with the game