From 98a5a895cccdceeda7be892bed3ecd6796ef1d95 Mon Sep 17 00:00:00 2001 From: HomeSpan Date: Sun, 12 Sep 2021 16:19:10 -0500 Subject: [PATCH] Update PwmPin.cpp Tested new functionality on RGB LED. Works well with using floating point precision. --- src/extras/PwmPin.cpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/extras/PwmPin.cpp b/src/extras/PwmPin.cpp index 034c92a..f1021e2 100644 --- a/src/extras/PwmPin.cpp +++ b/src/extras/PwmPin.cpp @@ -63,15 +63,6 @@ void LedPin::set(float level){ if(!channel) return; - Serial.printf("LED pin=%d, ch=%d, mode=%d, timer=%d, freq=%d, res=%d\n", - channel->gpio_num, - channel->channel, - channel->speed_mode, - channel->timer_sel, - timer->freq_hz, - timer->duty_resolution - ); - if(level>100) level=100; @@ -161,15 +152,6 @@ void ServoPin::set(double degrees){ if(!channel) return; - Serial.printf("Servo pin=%d, ch=%d, mode=%d, timer=%d, freq=%d, res=%d\n", - channel->gpio_num, - channel->channel, - channel->speed_mode, - channel->timer_sel, - timer->freq_hz, - timer->duty_resolution - ); - double usec=(degrees-minDegrees)*microsPerDegree+minMicros; if(usec