I've got a IR Rx strapped to a servo that I want to use to find an IR homing signal:
symbol pos = b1
symbol ir_code = b2
init:
servo 7,150
pause 250
ir_wide_scan2:
let b3=1:debug:wait 3
for pos = 225 to 75 step -5 'increments servopos value
let b3=2:debug:wait 3
servopos 7, pos 'starts...