Code:Start: LOW SONYLED <-------------------------Here you turn off the LED IRBUTTON=255: IRDEVICE=255 Pulsin irin,0,header if header < 1000 or header > 1350 then goto Start check: for i =0 to 11 pulsin irin,0,tmp if tmp >= 500 then Body.0[i]=1 'Sony Logic 1 is 120 else Body.0[i]=0 ' Sony Logic 0 is 60 endif next IRBUTTON = Body & %01111111 if IRBUTTON <=9 then loop: toggle Sonyled '<----------------------change! endif pause 100 goto start <--------sends program back to the beginning, this will turn off the LED
Bookmarks