I canceled my project for special reasons. Thank you very much to the friends who try to help
Could you post a schematic with all electrical connections including power, power supplies, and all ground connections which should be connected together. A frizzy thing doesn't count as a schematic. Include links to the parts as well.
gilshultz:
Could you post a schematic with all electrical connections including power, power supplies, and all ground connections which should be connected together. A frizzy thing doesn't count as a schematic. Include links to the parts as well.
I will draw and publish all of them today.
irrecv.resume();
}
I think these lines are not in the correct place in you code. They should come after you have tested for each of the received ir codes.
Also a switch statement might be easier than many if statements:
if(results.value==BUTON_ON_OFF){ // TÜM LEDLERİ KAPAT
Serial.println("CLOSE");
closeLed();
}
if(results.value==BUTON_MUTE){ //SELEKTÖR MODU
Serial.println("SELLEKTÖR");
sellektor();
}
becomes:
switch(results.value) {
case BUTON_ON_OFF: // TÜM LEDLERİ KAPAT
Serial.println("CLOSE");
closeLed();
break;
case BUTON_MUTE: //SELEKTÖR MODU
Serial.println("SELLEKTÖR");
sellektor();
break;
case....
....
}
Please auto-format your code. This will help make it easier to read and to spot errors like { } in the wrong places.
gilshultz:
Could you post a schematic with all electrical connections including power, power supplies, and all ground connections which should be connected together. A frizzy thing doesn't count as a schematic. Include links to the parts as well.
I posted the circuit diagram.
PaulRB:
irrecv.resume();
}
I think these lines are not in the correct place in you code. They should come after you have tested for each of the received ir codes. Also a switch statement might be easier than many if statements:
if(results.value==BUTON_ON_OFF){ // TÜM LEDLERİ KAPAT
Serial.println("CLOSE");
closeLed();
}
if(results.value==BUTON_MUTE){ //SELEKTÖR MODU
Serial.println("SELLEKTÖR");
sellektor();
}
becomes:
switch(results.value) {
case BUTON_ON_OFF: // TÜM LEDLERİ KAPAT
Serial.println("CLOSE");
closeLed();
break;
case BUTON_MUTE: //SELEKTÖR MODU
Serial.println("SELLEKTÖR");
sellektor();
break;
case....
....
}
Please auto-format your code. This will help make it easier to read and to spot errors like { } in the wrong places.
Thank you, I will try this.
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.