Loading...
Searching...
No Matches
Go to the documentation of this file.
5#include "platforms/esp/esp_version.h"
7#if CONFIG_IDF_TARGET_ESP32C2
8#define FASTLED_ESP32_HAS_CLOCKLESS_SPI 1
9#define FASTLED_ESP32_HAS_RMT 0
10#define FASTLED_ESP32_HAS_RMT5 0
11#elif CONFIG_IDF_TARGET_ESP32C3
12#define FASTLED_ESP32_HAS_CLOCKLESS_SPI 1
13#define FASTLED_ESP32_HAS_RMT 1
14#define FASTLED_ESP32_HAS_RMT5 1
15#elif CONFIG_IDF_TARGET_ESP32C5
16#define FASTLED_ESP32_HAS_CLOCKLESS_SPI 1
17#define FASTLED_ESP32_HAS_RMT 1
18#define FASTLED_ESP32_HAS_RMT5 1
19#elif CONFIG_IDF_TARGET_ESP32C6
20#define FASTLED_ESP32_HAS_CLOCKLESS_SPI 1
21#define FASTLED_ESP32_HAS_RMT 1
22#define FASTLED_ESP32_HAS_RMT5 1
23#elif CONFIG_IDF_TARGET_ESP32S2
24#define FASTLED_ESP32_HAS_CLOCKLESS_SPI 1
25#define FASTLED_ESP32_HAS_RMT 1
26#define FASTLED_ESP32_HAS_RMT5 1
27#elif CONFIG_IDF_TARGET_ESP32S3
28#define FASTLED_ESP32_HAS_CLOCKLESS_SPI 1
29#define FASTLED_ESP32_HAS_RMT 1
30#define FASTLED_ESP32_HAS_RMT5 1
31#elif CONFIG_IDF_TARGET_ESP32H2
32#define FASTLED_ESP32_HAS_CLOCKLESS_SPI 1
33#define FASTLED_ESP32_HAS_RMT 1
34#define FASTLED_ESP32_HAS_RMT5 1
35#elif CONFIG_IDF_TARGET_ESP32P4
36#define FASTLED_ESP32_HAS_CLOCKLESS_SPI 1
37#define FASTLED_ESP32_HAS_RMT 1
38#define FASTLED_ESP32_HAS_RMT5 1
39#elif CONFIG_IDF_TARGET_ESP8266
40#define FASTLED_ESP32_HAS_CLOCKLESS_SPI 0
41#define FASTLED_ESP32_HAS_RMT 0
42#define FASTLED_ESP32_HAS_RMT5 0
43#elif CONFIG_IDF_TARGET_ESP32 || defined(ARDUINO_ESP32_DEV)
44#define FASTLED_ESP32_HAS_CLOCKLESS_SPI 1
45#define FASTLED_ESP32_HAS_RMT 1
46#define FASTLED_ESP32_HAS_RMT5 1
48#warning "Unknown board, assuming support for clockless RMT5 and SPI chipsets. Please file an bug report with FastLED and tell them about your board type."
49#define FASTLED_ESP32_HAS_CLOCKLESS_SPI 1
50#define FASTLED_ESP32_HAS_RMT 1
51#define FASTLED_ESP32_HAS_RMT5 1
54#if ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 0, 0)
55#undef FASTLED_ESP32_HAS_RMT5
56#undef FASTLED_ESP32_HAS_CLOCKLESS_SPI
57#define FASTLED_ESP32_HAS_RMT5 0
58#define FASTLED_ESP32_HAS_CLOCKLESS_SPI 0
65#if FASTLED_ESP32_HAS_RMT5 && !defined(FASTLED_RMT5)