//Coded By: Nitin Rajput

int led = 12; // the PWM pin the LED is attached to
int brightness = 0; // how bright the LED is
int fadeAmount = 5; // how many points to fade the LED

void setup() {
  pinMode(led, OUTPUT);
}

void loop() {
  analogWrite(led, brightness);
  brightness = brightness + fadeAmount;
  
  if (brightness == 0 || brightness == 255) 
  {
      fadeAmount = -fadeAmount ;
  }
  delay(300);
}
$abcdeabcde151015202530fghijfghij