>Disabling PWM does not get what you want: it does disable the toggling, but >the pin could either be high or low (thus: might continuesly emit IR and draw >current).
Right, but I had another working variant before: PWM was continuously running, with the anode of the LED connected. The cathode (with resistor) was connected to another port pin. The LED always gets the modulating frequency, but, depending on the second pin, in forward or reverse direction. This would have been possible entirely without software, using comparator peripherals or the like. At 5V, there is no risk to damage the LED by reverse voltage. When the visible LED was added that shows the user that the repeater works, I changed the program to this version. Greets, Kiste -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
