Hi,
sorry for my bad english...i will try again to explain my idea:
the lamp starts with both leds of (Initial state). now i press the button and the Output of the White should be 1/4 pwm:
if (reading == HIGH && previous == LOW && millis() - time > debounce) {
{
analogWrite(ledPinwhite,64);
}
to get into the next mode on the next press of the button (pwm 128 of White) i use this:
if (ledPinwhite == 64 && ledPinblue == 0)
{
analogWrite(ledPinwhite,128);
}
for me this makes sense, but i am not a programmer ![]()