aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSol Huebner <solhuebner@users.noreply.github.com>2022-01-04 05:31:44 -0500
committerGitHub <noreply@github.com>2022-01-04 05:31:44 -0500
commit5f3e7e3e517b249cf3080ca6943cf49bdf2d1e2b (patch)
tree112f20792ad60f9fe078444633557a8ba67e838f
parent2fe19b0cbe41f7330dc82b6962e6459da71892c6 (diff)
Add project as ESP-IDF component files
This makes it possible to build ESP32-HUB75-MatrixPanel-I2S-DMA as an ESP-IDF component :)
-rw-r--r--CMakeLists.txt11
-rw-r--r--component.mk1
2 files changed, 12 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..fa81dd0
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,11 @@
+# HUB75 RGB LED matrix library utilizing ESP32 DMA Engine
+# https://github.com/mrfaptastic/ESP32-HUB75-MatrixPanel-I2S-DMA
+# MIT License
+
+cmake_minimum_required(VERSION 3.5)
+
+idf_component_register(SRCS "esp32_i2s_parallel_dma.c" "ESP32-HUB75-MatrixPanel-I2S-DMA.cpp" "ESP32-HUB75-MatrixPanel-leddrivers.cpp"
+ INCLUDE_DIRS "."
+ REQUIRES arduino)
+
+project(ESP32-HUB75-MatrixPanel-I2S-DMA)
diff --git a/component.mk b/component.mk
new file mode 100644
index 0000000..049f190
--- /dev/null
+++ b/component.mk
@@ -0,0 +1 @@
+COMPONENT_ADD_INCLUDEDIRS = .