forked from bbulkow/FastLED-idf
Hacked a makefile issue ( Define ESP32 ) which should have been
done a better way.
This commit is contained in:
19
components/FastLED-idf/CMakeLists.txt
Normal file
19
components/FastLED-idf/CMakeLists.txt
Normal file
@ -0,0 +1,19 @@
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
|
||||
set(srcs
|
||||
"FastLED.cpp"
|
||||
"bitswap.cpp"
|
||||
"colorpalettes.cpp"
|
||||
"colorutils.cpp"
|
||||
"hsv2rgb.cpp"
|
||||
"lib8tion.cpp"
|
||||
"noise.cpp"
|
||||
"platforms.cpp"
|
||||
"power_mgt.cpp"
|
||||
"wiring.cpp")
|
||||
# everything needs the ESP32 flag, not sure why this won't work
|
||||
# going to hack by adding the ESP32 define in the h file
|
||||
#`target_compile_options(${COMPONENT_LIB} PRIVATE "-DESP32")
|
||||
|
||||
idf_component_register(SRCS "${srcs}"
|
||||
INCLUDE_DIRS "." )
|
@ -4,6 +4,9 @@
|
||||
///@file FastLED.h
|
||||
/// central include file for FastLED, defines the CFastLED class/object
|
||||
|
||||
// BB hack
|
||||
#define ESP32
|
||||
|
||||
#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)
|
||||
#define FASTLED_HAS_PRAGMA_MESSAGE
|
||||
#endif
|
||||
|
10
components/FastLED-idf/Kconfig
Normal file
10
components/FastLED-idf/Kconfig
Normal file
@ -0,0 +1,10 @@
|
||||
menu "Fast LED"
|
||||
|
||||
config FAST_LED_TEST
|
||||
bool "Create a Fast LED option in case I need to later"
|
||||
default n
|
||||
help
|
||||
I don't know if I'm going to have to add menuconfig options in the future.
|
||||
Maybe I will. If I do, this is the template for doing it.
|
||||
|
||||
endmenu
|
@ -1 +1,3 @@
|
||||
COMPONENT_SRCDIRS := .
|
||||
COMPONENT_ADD_INCLUDEDIRS := .
|
||||
COMPONENT_PRIV_INCLUDEDIRS := lib8tion platforms/esp/32
|
||||
|
@ -1,6 +1,8 @@
|
||||
#ifndef __INC_PLATFORMS_H
|
||||
#define __INC_PLATFORMS_H
|
||||
|
||||
#define ESP32
|
||||
|
||||
#include "FastLED.h"
|
||||
|
||||
#include "fastled_config.h"
|
||||
|
Reference in New Issue
Block a user