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.
2 parents d5a134b + 82dbfa4 commit ad6ac41Copy full SHA for ad6ac41
src/components/pwm/ws_pwm.cpp
@@ -88,6 +88,10 @@ 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) && defined(STATUS_LED_PIN)
92
+ // Adafruit Feather ESP8266's analogWrite() is inverted because its LED pin is
93
+ // reverse-wired
94
+ analogWrite(pin, 255 - dutyCycle);
95
#else
96
analogWrite(pin, dutyCycle);
97
#endif
0 commit comments