Skip to content

Commit a11b473

Browse files
committed
fix(rmt): ESP32_ARDUINO_NEW_RMT_DRV_OFF
1 parent 3629905 commit a11b473

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

libraries/ESP32/examples/RMT/Legacy_RMT_Driver_Compatible/Legacy_RMT_Driver_Compatible.ino

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
*
88
*/
99

10-
#ifndef NO_NEW_RMT_DRV
10+
#ifndef ESP32_ARDUIESP32_ARDUINO_NEW_RMT_DRV_OFF_OFF
1111

12-
// add the file "build_opt.h" to your Arduino project folder with "-DNO_NEW_RMT_DRV" to use the RMT Legacy driver
13-
#warning "NO_NEW_RMT_DRV is not defined, using new RMT driver"
12+
// add the file "build_opt.h" to your Arduino project folder with "-DESP32_ARDUINO_NEW_RMT_DRV_OFF" to use the RMT Legacy driver
13+
#warning "ESP32_ARDUINO_NEW_RMT_DRV_OFF is not defined, using new RMT driver"
1414

1515
#define RMT_PIN 4 // Valid GPIO for ESP32, S2, S3, C3, C6 and H2
1616
bool installed = false;
@@ -30,7 +30,7 @@ void loop() {
3030

3131
#else
3232

33-
// add the file "build_opt.h" to your Arduino project folder with "-DNO_NEW_RMT_DRV" to use the RMT Legacy driver
33+
// add the file "build_opt.h" to your Arduino project folder with "-DESP32_ARDUINO_NEW_RMT_DRV_OFF" to use the RMT Legacy driver
3434
// neoPixelWrite() is a function that writes to the RGB LED and it won't be available here
3535
#include "driver/rmt.h"
3636

@@ -49,4 +49,4 @@ void loop() {
4949
delay(5000);
5050
}
5151

52-
#endif // NO_NEW_RMT_DRV
52+
#endif // ESP32_ARDUINO_NEW_RMT_DRV_OFF
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
-DNO_NEW_RMT_DRV
1+
-DESP32_ARDUINO_NEW_RMT_DRV_OFF

0 commit comments

Comments
 (0)