Infrared
IR decoder is fixed to pin 2 and 8
IrEnable(pin,enable) - enables pin for IR signal capture
pin: 2 or 8
enable: 1 = enable, 0 = disableIrRead() - reads the value from the IR enabled pin
Return: Tracks the past 16 key presses and returns them. -1 if none.
IrEnable(2,1)
@Loop
x=IrRead()
if x >=0: PrintLn(x):end
Wait(1000)
goto Loop