add debug prints. tischlicht turns off too early
This commit is contained in:
parent
948cf6b047
commit
d1b05816d5
|
@ -29,8 +29,8 @@ lib_deps =
|
|||
|
||||
build_flags =
|
||||
-D DUALCOLOR
|
||||
-D LED_WW=14 ;D5 = GPIO14 (pin5)
|
||||
-D LED_CW=12 ;D6 = GPIO12 (pin6)
|
||||
-D LED_WW=14 ;D5 = GPIO14 (pin5)
|
||||
-D BTN_A=13 ;D7 = GPIO13 (pin 7)
|
||||
-D BTN_B=15 ;D8 = GPIO15 (pin 10)
|
||||
-D PWM_FREQUENCY=500 ;default: 1000 Hz
|
||||
|
|
|
@ -335,6 +335,8 @@ void loopHandler() {
|
|||
pwmWW=pow((brightness*enable_fadevalue)/2.0, BRIGHTNESSCURVE) *2.0 *(1-temp) *PWM_MAX;
|
||||
if (pwmCW>PWM_MAX) { pwmCW=PWM_MAX; } //limit
|
||||
if (pwmWW>PWM_MAX) { pwmWW=PWM_MAX; } //limit
|
||||
Serial.print("brightness"); Serial.println(brightness);
|
||||
Serial.print("CW="); Serial.print(pwmCW); Serial.print(", WW="); Serial.println(pwmWW);
|
||||
|
||||
analogWrite(LED_WW, PWM_MAX-pwmWW); //full pwm is led off
|
||||
analogWrite(LED_CW, PWM_MAX-pwmCW); //full pwm is led off
|
||||
|
|
Loading…
Reference in New Issue