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

I should've posted this in LED category sorry guys. If someone could move it that would be awesome.