why do you need both analogwrite and PWM pins code example Example: arduino code analogwrite analogWrite(Pin number here,0 - 255 value here);