#define LED_PIN 18
int brightness = 0;
int fadeAmount = 5;
void setup() {
// put your setup code here, to run once:
pinMode(LED_PIN, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
// Blink
// digitalWrite(18, HIGH); // turn the LED on
// delay(500); // wait for 500 milliseconds
// digitalWrite(18, LOW); // turn the LED off
// delay(500); // wait for 500 milliseconds
// Fade
// analogWrite(LED_PIN, brightness);
// brightness += fadeAmount;
// if(brightness <= 0 || brightness >= 255)
// {
// fadeAmount = -fadeAmount;
// }
// delay(30);
}