I have a problem with the PWM… all the data I get by an UDP Connection. These part is working fine, but the PWM isn’t Working… Maybe someone can help me. Here is my code:
red = strtok(value,splitValue); green = strtok(NULL,splitValue); blue = strtok(NULL,splitValue); brightness = strtok(NULL,splitValue); Serial.write(red); analogWrite(redPWM, (int)red, 65535); analogWrite(greenPWM, (int)green, 65535); analogWrite(bluePWM_LEDDimmer, (int)blue, 65535);
Thanks for your help!