diff --git a/components/FastLED-idf/platforms/esp/32/clockless_rmt_esp32.cpp b/components/FastLED-idf/platforms/esp/32/clockless_rmt_esp32.cpp index fa657f8..23f144b 100644 --- a/components/FastLED-idf/platforms/esp/32/clockless_rmt_esp32.cpp +++ b/components/FastLED-idf/platforms/esp/32/clockless_rmt_esp32.cpp @@ -276,13 +276,13 @@ void ESP32RMTController::init() // NOTE: In ESP-IDF 4.1++, there is a #define to init, but that doesn't exist // in earlier versions #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 1, 0) - rmt_config_t rmt_tx = RMT_DEFAULT_CONFIG_TX(gpio_num_t(0), rmt_channel); + rmt_config_t rmt_tx = RMT_DEFAULT_CONFIG_TX(mPin, rmt_channel); #else rmt_config_t rmt_tx; memset((void*) &rmt_tx, 0, sizeof(rmt_tx)); rmt_tx.channel = rmt_channel; rmt_tx.rmt_mode = RMT_MODE_TX; - rmt_tx.gpio_num = gpio_num_t(0); // The particular pin will be assigned later + rmt_tx.gpio_num = mPin; #endif rmt_tx.mem_block_num = MEM_BLOCK_NUM; diff --git a/components/FastLED-idf/platforms/esp/32/clockless_rmt_esp32.h b/components/FastLED-idf/platforms/esp/32/clockless_rmt_esp32.h index a9b5e30..e358774 100644 --- a/components/FastLED-idf/platforms/esp/32/clockless_rmt_esp32.h +++ b/components/FastLED-idf/platforms/esp/32/clockless_rmt_esp32.h @@ -248,7 +248,7 @@ class ESP32RMTController // -- Initialize RMT subsystem // This only needs to be done once - static void init(); + void init(); // -- Show this string of pixels // This is the main entry point for the pixel controller