Using IR Remote library while bit banging

I've solved it till now with an extra Arduino (I had one lying around, so that was easier than the "breadboard" circuit) for the IR remote.

However running everything from one Arduino would be better of course.