MOSFET - LED not dimming

I am using a RFP30N06LE mosfet to dim an LED. The LED does not appear to dim at all. In the schematic I didn't label the current limiting resistor on the LED, because I am using one of the LED boards linked below. Did I do something wrong?

unsigned int i;
void setup()
{
    pinMode(4, OUTPUT);
}

void loop() {
  
  for(i=240;i>20;i--)
  {
   analogWrite(4,i);
   delay(200);
  }
  
  delay(1000);
  
  for(i=20;i<240;i++)
  {
   analogWrite(4,i);
   delay(200);
  }
}

(deleted)

Not sure how I missed that. 4 is not pwm....

(deleted)

Pin 5 does indeed work better:)

smarts-jb:
Easy to miss on a board that doesn't have the ~ printed on ala UNO :wink:

Appears to be a really minuscule mark above the "D". :cold_sweat:

I had the PDF pinout sheet, just was too confident pin 4 was pwm and didn't verify.