TIMSK2 &= ~_BV(TOIE2); //Timer2 Overflow Interrupt\r
\r
pinMode(3, OUTPUT);\r
- digitalWrite(3, LOW); // When not sending PWM, we want it low\r
+ digitalWrite(3, HIGH); // When not sending PWM, we want it low\r
\r
// COM2A = 00: disconnect OC2A\r
// COM2B = 00: disconnect OC2B; to send signal set to 10: OC2B non-inverted\r
\r
// The top value for the timer. The modulation frequency will be SYSCLOCK / 2 / OCR2A.\r
OCR2A = SYSCLOCK / 2 / khz / 1000;\r
- OCR2B = OCR2A / 3; // 33% duty cycle\r
+ OCR2B = OCR2A / 4; // 33% duty cycle\r
}\r
\r
IRrecv::IRrecv(int recvpin)\r
digitalWrite(PANIC_BUTTON_PIN, HIGH); // turn on pullup resistors
analogWrite(BLUELED_PWM_PIN,0);
analogWrite(BLUELED2_PWM_PIN,255); //pwm sink(-) instead of pwm + (better for mosfets)
-
+ pinMode(IRREMOTE_SEND_PIN, OUTPUT);
+ digitalWrite(IRREMOTE_SEND_PIN, HIGH);
+
Serial.begin(9600);
onewire.reset();