8000 Preserve phase relationship when waveform updated by earlephilhower · Pull Request #7192 · esp8266/Arduino · GitHub
[go: up one dir, main page]

Skip to content

Preserve phase relationship when waveform updated #7192

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from
Prev Previous commit
Next Next commit
Actually use the Cycles not the US call in analogWrite
  • Loading branch information
earlephilhower committed Apr 4, 2020
commit e75da8750a6c7b3cdfd1ffd61d3b80122a9585ea
2 changes: 1 addition & 1 deletion cores/esp8266/core_esp8266_wiring_pwm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ extern void __analogWrite(uint8_t pin, int val) {
stopWaveform(pin);
digitalWrite(pin, LOW);
} else {
if (startWaveform(pin, high, low, 0)) {
if (startWaveformCycles(pin, high, low, 0)) {
analogMap |= (1 << pin);
}
}
Expand Down
0