Skip to content

Commit e75da87

Browse files
Actually use the Cycles not the US call in analogWrite
1 parent 6450989 commit e75da87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp8266/core_esp8266_wiring_pwm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ extern void __analogWrite(uint8_t pin, int val) {
6969
stopWaveform(pin);
7070
digitalWrite(pin, LOW);
7171
} else {
72-
if (startWaveform(pin, high, low, 0)) {
72+
if (startWaveformCycles(pin, high, low, 0)) {
7373
analogMap |= (1 << pin);
7474
}
7575
}

0 commit comments

Comments
 (0)