Reading / interpreting InfreRed remote data on a printer port pin
Code is here:
remote.c