#include String kod,sonkod; int RECV_PIN=11; decode_results results; String kirimizi = "EF10BF00"; String yesil = "EE11BF00"; String mavi = "ED12BF00"; String sari = "EB14BF00"; String mor = "EA15BF00"; String turkuaz = "E916BF00"; String beyaz = "E718BF00"; String siyah = "E619BF00"; void setup() { pinMode(3, OUTPUT); pinMode(5, OUTPUT); pinMode(6,OUTPUT); Serial.begin(9600); irrecv.enableIRIn(); } void loop() { if(irrecv.decode(&results)) { Serial.println(results.value,HEX); if(results.value==kirimizi) { digitalWrite (3,1); digitalWrite (5,0); digitalWrite (6,0); } if (results.value== yesil) { digitalWrite(3,0); digitalWrite(5,1); digitalWrite(6,0); } if (results.value== mavi) { digitalWrite(3,0); digitalWrite(5,0); digitalWrite(6,1); } if (results.value== sari) { digitalWrite(3,1); digitalWrite(5,1); digitalWrite(6,0); } if (results.value== mor) { digitalWrite(3,1); digitalWrite(5,0); digitalWrite(6,1); } if (results.value== turkuaz) { digitalWrite(3,0); digitalWrite(5,1); digitalWrite(6,1); } if (results.value== beyaz) { digitalWrite(3,1); digitalWrite(5,1); digitalWrite(6,1); } if (results.value== siyah) { digitalWrite(3,0); digitalWrite(5,0); digitalWrite(6,0); } irrecv.resume(); } } }