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 855ee8a commit 82dbfa4Copy full SHA for 82dbfa4
src/components/pwm/ws_pwm.cpp
@@ -88,8 +88,8 @@ void ws_pwm::detach(uint8_t pin) {
88
void ws_pwm::writeDutyCycle(uint8_t pin, int dutyCycle) {
89
#if defined(ARDUINO_ARCH_ESP32)
90
_ledcMgr->analogWrite(pin, dutyCycle);
91
-#elif defined(ARDUINO_ESP8266_ADAFRUIT_HUZZAH)
92
- // Adafruit Feather ESP8266's analogWrite() is inverted because LED pin is
+#elif defined(ARDUINO_ESP8266_ADAFRUIT_HUZZAH) && defined(STATUS_LED_PIN)
+ // Adafruit Feather ESP8266's analogWrite() is inverted because its LED pin is
93
// reverse-wired
94
analogWrite(pin, 255 - dutyCycle);
95
#else
0 commit comments