thanks for reply everyone..
@demon and mackaraket guys the above code is working there is nth wrong with it.i just want to add an additional functionality of on/off...
@cncmachineguy i didnt understand your reply can u elaborate a little.... plz
thanks for reply everyone..
@demon and mackaraket guys the above code is working there is nth wrong with it.i just want to add an additional functionality of on/off...
@cncmachineguy i didnt understand your reply can u elaborate a little.... plz
Last edited by engineer7; - 5th June 2011 at 14:05.
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
-Bert
The glass is not half full or half empty, Its twice as big as needed for the job!
http://foamcasualty.com/ - Warbird R/C scratch building with foam!
Bookmarks