'SV200C IR Receiver Functions
'This program will wait in an idle loop until an IR signal is received. The
'value received will be sent out the serial port and wait for another IR
'signal.

bIRenable = 1  'Enable IR receiver

DO
   IF bIRreceive Then    'If IR received in Buffer
      PRINT IRreg        'Send IR value out serial port
      bIRreceive = 0     'Clear flag for next receive
   END IF                'End of IF statement
LOOP                     'Loop back to DO

