From what I've read, IR inout with infrain2 only returns when a valid IR symbol is read. I'd like to drive an LED heartbeat with the pwm while waiting for IR input.
Might it be possible to poll an input pin for any level change on the IR decoder, then (perhaps interrupt) go to infrain2 once some IR change is detected AND keep modulating the pwm at the same time. (I'm wary of getting stuck waiting on IR and therefor not being able to wiggle the LED). Any suggestions? (Perhaps bit-banging IR in?)
Paul
Might it be possible to poll an input pin for any level change on the IR decoder, then (perhaps interrupt) go to infrain2 once some IR change is detected AND keep modulating the pwm at the same time. (I'm wary of getting stuck waiting on IR and therefor not being able to wiggle the LED). Any suggestions? (Perhaps bit-banging IR in?)
Paul