aboutsummaryrefslogtreecommitdiff
path: root/src/platforms/esp32s2
diff options
context:
space:
mode:
authormrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2022-09-30 03:17:19 +0100
committermrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2022-09-30 03:17:19 +0100
commitebe75dcaba0239d225243cdedd31aaf860abbd0a (patch)
treefda21143906b93de687447af52c40f9329956d21 /src/platforms/esp32s2
parent86063fe594cda6a572bd335e7e34af7c75226aad (diff)
Update to include S3 support.
Refactor tonnes of code. Double buffering not yet fully tested. PSRAM support doesn't work at all - garbled mess. Enable in platformIO using: build_flags = -DSPIRAM_FRAMEBUFFER=1
Diffstat (limited to 'src/platforms/esp32s2')
-rw-r--r--src/platforms/esp32s2/esp32s2-default-pins.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/platforms/esp32s2/esp32s2-default-pins.hpp b/src/platforms/esp32s2/esp32s2-default-pins.hpp
new file mode 100644
index 0000000..202b1c5
--- /dev/null
+++ b/src/platforms/esp32s2/esp32s2-default-pins.hpp
@@ -0,0 +1,16 @@
+#pragma once
+
+#define R1_PIN_DEFAULT 45
+#define G1_PIN_DEFAULT 42
+#define B1_PIN_DEFAULT 41
+#define R2_PIN_DEFAULT 40
+#define G2_PIN_DEFAULT 39
+#define B2_PIN_DEFAULT 38
+#define A_PIN_DEFAULT 37
+#define B_PIN_DEFAULT 36
+#define C_PIN_DEFAULT 35
+#define D_PIN_DEFAULT 34
+#define E_PIN_DEFAULT -1 // required for 1/32 scan panels, like 64x64. Any available pin would do, i.e. IO32
+#define LAT_PIN_DEFAULT 26
+#define OE_PIN_DEFAULT 21
+#define CLK_PIN_DEFAULT 33