From c26216f755a11e85974eab7a2887da95f01963a9 Mon Sep 17 00:00:00 2001 From: Felix Pankratz Date: Sat, 16 Nov 2024 16:33:47 +0100 Subject: [PATCH] update badapple for matrix portal s3 --- badapple/platformio.ini | 10 +++++++-- badapple/src/main.cpp | 48 +++++++++++++++++++++++++++-------------- 2 files changed, 40 insertions(+), 18 deletions(-) diff --git a/badapple/platformio.ini b/badapple/platformio.ini index 2fb0f77..34db57d 100644 --- a/badapple/platformio.ini +++ b/badapple/platformio.ini @@ -8,9 +8,15 @@ ; Please visit documentation for the other options and examples ; https://docs.platformio.org/page/projectconf.html -[env:esp32dev] +;[env:esp32dev] +;platform = espressif32 +;board = esp32dev +;framework = arduino +;monitor_speed = 115200 + +[env:adafruit_matrixportal_esp32s3] platform = espressif32 -board = esp32dev +board = adafruit_matrixportal_esp32s3 framework = arduino monitor_speed = 115200 diff --git a/badapple/src/main.cpp b/badapple/src/main.cpp index 2462b2b..28c85ac 100644 --- a/badapple/src/main.cpp +++ b/badapple/src/main.cpp @@ -6,22 +6,38 @@ #include "main.h" #include "badapple.h" -#define R1 25 -#define G1 27 //26 -#define BL1 26 //27 -#define R2 14 -#define G2 13 //12 -#define BL2 12 //13 -#define CH_A 23 -#define CH_B 22 //19 -#define CH_C 5 -#define CH_D 17 -#define CH_E 32 // assign to any available pin if using panels with 1/32 scan -#define CLK 16 -#define LAT 4 -#define OE 15 - -#define PIN_E 32 +#define R1 42 +#define G1 40 +#define BL1 41 +#define R2 38 +#define G2 37 +#define BL2 39 +#define CH_A 45 +#define CH_B 36 +#define CH_C 48 +#define CH_D 35 +#define CH_E 21 +#define CLK 2 +#define LAT 47 +#define OE 14 + +// esp32 w/ wiring harness +// #define R1 25 +// #define G1 27 //26 +// #define BL1 26 //27 +// #define R2 14 +// #define G2 13 //12 +// #define BL2 12 //13 +// #define CH_A 23 +// #define CH_B 22 //19 +// #define CH_C 5 +// #define CH_D 17 +// #define CH_E 32 // assign to any available pin if using panels with 1/32 scan +// #define CLK 16 +// #define LAT 4 +// #define OE 15 + +#define PIN_E 21 #define PANEL_WIDTH 64 #define PANEL_HEIGHT 32 // Panel height of 64 will required PIN_E to be defined.