We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a163d14 commit 7d3dbd8Copy full SHA for 7d3dbd8
src/drivers/hardware_specific/generic_mcu.cpp
@@ -1,7 +1,8 @@
1
+
2
#include "../hardware_api.h"
3
4
// if the mcu doen't have defiend analogWrite
-#if defined(ESP_H) && defined(ARDUINO_ARCH_ESP32)
5
+#if defined(ESP_H) && defined(ARDUINO_ARCH_ESP32) && !defined(analogWrite)
6
__attribute__((weak)) void analogWrite(uint8_t pin, int value){ };
7
#endif
8
0 commit comments