From 5f3e7e3e517b249cf3080ca6943cf49bdf2d1e2b Mon Sep 17 00:00:00 2001 From: Sol Huebner Date: Tue, 4 Jan 2022 05:31:44 -0500 Subject: [PATCH] Add project as ESP-IDF component files This makes it possible to build ESP32-HUB75-MatrixPanel-I2S-DMA as an ESP-IDF component :) --- CMakeLists.txt | 11 +++++++++++ component.mk | 1 + 2 files changed, 12 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 component.mk 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 = .