Mega 2560 led blink with pot analogwrite or digitalwrite?[solved]

See, told you I was noob lol thanks.

pinMode(led, OUTPUT);

Works perfect.