Added support for old and new IDF

This commit is contained in:
feedc0de committed 2022-01-03 17:12:02 +01:00
1 parent 5a3c3866d1
commit a18abff773
2 files changed
+8

No files matched your search

+4
View File
@@ -429,7 +429,11 @@ void ESP32RMTController::startOnChannel(int channel)
mRMT_channel = rmt_channel_t(channel * MEM_BLOCK_NUM);
// -- Assign the pin to this channel
#ifdef OLD_IDF
rmt_set_pin(mRMT_channel, RMT_MODE_TX, mPin);
#else
rmt_set_gpio(mRMT_channel, RMT_MODE_TX, mPin, false);
#endif
if (FASTLED_RMT_BUILTIN_DRIVER) {
// -- Use the built-in RMT driver to send all the data in one shot