// RGB LED kontrolü
int ADC_Buton = 0; // ADC Buton değişkeni
int ADC_Buton_pin = A1; // ADC Buton bağlantı pini
int Buzzer_pin = A5; // Buzzer pin
const byte kirmizi = 9, yesil = 10, mavi = 11; // PWM pinleri.
//********************************************
void setup() {
pinMode(Buzzer_pin, OUTPUT);
}
//********************************************
void loop() {
for (int a = 0; a <= 255; a++) {
analogWrite(kirmizi, a);
for (int b = 0; b <= 255; b++) {
analogWrite(yesil, b);
for (int c = 0; c <= 255; c++) {
analogWrite(mavi, c);
delay(10);
}
}
}
}
//********************************************