Slightly reduce PWM jankiness

This commit is contained in:
Will Miles
2024-09-28 23:12:03 -04:00
parent cc87b32206
commit fe4b668107
2 changed files with 27 additions and 8 deletions

View File

@@ -612,7 +612,7 @@ void BusPwm::show() {
if (_reversed) duty = maxBri - duty;
#ifdef ESP8266
stopWaveform(_pins[i]);
//stopWaveform(_pins[i]); // can cause the waveform to miss a cycle. instead we risk crossovers.
startWaveformClockCycles(_pins[i], duty, analogPeriod - duty, 0, i ? _pins[0] : -1, hPoint, false);
#else
unsigned channel = _ledcStart + i;