X-Git-Url: https://git.realraum.at/?p=svn42.git;a=blobdiff_plain;f=rf433ctl%2FIRremote%2FIRremote.cpp;h=b632723066e9aa1e331332eb3d28057657a300e4;hp=bb6083e660ec41fc1c9d101d4ae30eda8f400032;hb=a34e51d757fe52cb19de2937ae1b211894167524;hpb=25c188a6f7e81250f91e224896d6a6d290f04643 diff --git a/rf433ctl/IRremote/IRremote.cpp b/rf433ctl/IRremote/IRremote.cpp index bb6083e..b632723 100644 --- a/rf433ctl/IRremote/IRremote.cpp +++ b/rf433ctl/IRremote/IRremote.cpp @@ -198,7 +198,7 @@ void IRsend::enableIROut(int khz) { TIMSK2 &= ~_BV(TOIE2); //Timer2 Overflow Interrupt pinMode(3, OUTPUT); - digitalWrite(3, LOW); // When not sending PWM, we want it low + digitalWrite(3, HIGH); // When not sending PWM, we want it low (invertiert angeschlossen) // COM2A = 00: disconnect OC2A // COM2B = 00: disconnect OC2B; to send signal set to 10: OC2B non-inverted @@ -209,7 +209,7 @@ void IRsend::enableIROut(int khz) { // The top value for the timer. The modulation frequency will be SYSCLOCK / 2 / OCR2A. OCR2A = SYSCLOCK / 2 / khz / 1000; - OCR2B = OCR2A / 3; // 33% duty cycle + OCR2B = OCR2A / 4; // 33% duty cycle } IRrecv::IRrecv(int recvpin)