mirror of
https://github.com/jrcutler/Tiny_IR_Repeater
synced 2024-12-22 00:24:29 +00:00
Switch to ~33% duty cycle
This commit is contained in:
parent
73f65f26c6
commit
414ad4f61f
4
main.c
4
main.c
@ -94,10 +94,10 @@ void setup(void)
|
||||
* IR transmitter setup
|
||||
*/
|
||||
|
||||
/* enable IR modulation (50% duty cycle) via Timer1 */
|
||||
/* enable IR modulation (~33% duty cycle) via Timer1 */
|
||||
TCCR1 = _BV(PWM1A) | _BV(CS12);
|
||||
OCR1C = (((F_CPU / 8 / IR_MODULATION)) - 1);
|
||||
OCR1A = OCR1C / 2;
|
||||
OCR1A = OCR1C / 3;
|
||||
/* set IR_TX as output */
|
||||
DDRB |= _BV(IR_TX);
|
||||
/* turn IR_TX off when not enabled */
|
||||
|
Loading…
Reference in New Issue
Block a user