update badapple for matrix portal s3

This commit is contained in:
Felix Pankratz 2024-11-16 16:33:47 +01:00
parent ed5966e0e2
commit c26216f755
2 changed files with 39 additions and 17 deletions

View File

@ -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

View File

@ -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 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
#define PIN_E 32
// 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.