>>692
2行で出来るよ

analogWrite(LEDのピン番号, 0から255);

これだけ
void setup(){pinMode(LEDのピン番号, OUTPUT);}
loop(){analogWrite(LEDのピン番号, 0から255);}