Looking for a way to send IR codes as decimal pulses.

I want to be able to send a basic code of 1 then wait 40ms and send another 1 or 0, and to read it. I am using an IR receiver and IR transmitter. Is this possible?

Is this possible?


Yes. But why not maybe use a more common/rugged protocol?