Hi, I tried this:
Code:
main1:
High power
Pause 100
Serout Tx, N9600, ["0x44+0x00+0xA0+0xE4"] ;To set lower threshold distance to appx 3 meters
Pause 100
Serout Tx, N9600, ["0x44+0x01+0xD1+0xFE"] ;To set upper threshold distance to appx 5 meters
Pause 100
Serout Tx, N9600, ["0x44+0x02+0xaa+0xF0"] ; To set operation mode to autonomous mode
main:
if PortA.2=1 then
high PortC.2
else
toggle PortC.5
endif
pause 50
goto main
end
And also this:
Code:
Serout Tx, N9600, [$44,$00,$A0,$E4] ;To set lower threshold distance to appx 3 meters
Pause 100
Serout Tx, N9600, [$44,$01,$D1,$FE] ;To set upper threshold distance to appx 5 meters
Pause 100
Serout Tx, N9600, [$44,$02,$aa,$F0] ;To set operation mode to autonomous mode
but no luck - any advise?
Bookmarks