const int pin = 11; //pin used must have a pwn function
void setup() {
// put your setup code here, to run once:
pinMode(pin, OUTPUT);
analogWrite(pin,20); //duty cycle set to ~ 20%
delay(2000);
analogWrite(pin,200);//duty cycle increased, increasing brightness
delay(2000);
analogWrite(pin,0);
}
void loop() {
// put your main code here, to run repeatedly:
}