Skip to content

Commit 3250637

Browse files
authored
Merge pull request #2532 from makermelissa/2020-shake-update
Update Shake 2020 demo for Matrix Portal S3
2 parents d9680e0 + ea7c633 commit 3250637

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

2020_shake/.matrixportal.test.only

Whitespace-only changes.

2020_shake/2020_shake.ino

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,19 @@ bool show_new_year = true;
2727
#define SHAKE_PERIOD 2000 // Period (in ms) when SHAKE_EVENTS must happen
2828
#define SAND_TIME 6000 // Time (in ms) to run simulation before restarting
2929

30+
#if defined(_VARIANT_MATRIXPORTAL_M4_) // MatrixPortal M4
3031
uint8_t rgbPins[] = {7, 8, 9, 10, 11, 12};
31-
uint8_t addrPins[] = {17, 18, 19, 20};
32+
uint8_t addrPins[] = {17, 18, 19, 20, 21};
3233
uint8_t clockPin = 14;
3334
uint8_t latchPin = 15;
3435
uint8_t oePin = 16;
36+
#else // MatrixPortal ESP32-S3
37+
uint8_t rgbPins[] = {42, 41, 40, 38, 39, 37};
38+
uint8_t addrPins[] = {35, 36, 48, 45, 21};
39+
uint8_t clockPin = 2;
40+
uint8_t latchPin = 47;
41+
uint8_t oePin = 14;
42+
#endif
3543

3644
// 64x32 pixel matrix, 6-bit depth
3745
Adafruit_Protomatter matrix(

0 commit comments

Comments
 (0)