projet
hello this is the test
int RPIN = 9; // Kırmızı int BPIN = 10; // Mavi int GPIN = 11; // Yeşil void setup() { // pinleri çıkış olarak ayarlıyoruz. pinMode(RPIN, OUTPUT); pinMode(BPIN, OUTPUT); pinMode(GPIN, OUTPUT); } void loop() { digitalWrite(GPIN, LOW); digitalWrite(RPIN, HIGH); delay(150); digitalWrite(RPIN, LOW); digitalWrite(BPIN, HIGH); delay(150); digitalWrite(BPIN, LOW); digitalWrite(GPIN, HIGH); delay(150); // Fade in Red for(int i=0; i< 255; i++) { analogWrite(RPIN,i); analogWrite(255-GPIN,i); delay(2); } // Fade in Blue for(int i=0; i< 255; i++) { analogWrite(BPIN,i); analogWrite(255-RPIN,i); delay(2); } // Fade in Green for(int i=0; i< 255; i++) { analogWrite(GPIN,i); analogWrite(255-BPIN,i); delay(2); } }