// Muhammad Ikhsan Faturrahman Wiguna
// 21/480831/TK/53068
// Teknik Elektro
int LED_PIN = 11;
int brightness = 0;
int fading = 5;
void setup() {
pinMode(LED_PIN, OUTPUT);
}
void loop() {
analogWrite(LED_PIN, brightness);
brightness = brightness + fading;
if (brightness <= 0 || brightness >= 255) {
fading = -fading;
}
delay(30);
}