hello Dave!
The PortA.1 and PortA.2 is the input which is connect to a limit
switch. Pulled up by 10 Kilo ohms, when PortA.2 is in 0/ground, it should be stop. After 4 hrs. it will turn back to original position(panel facing east). PortA.1 is also a limit switch,on reverse function. The original title of this code is Light tracker and it's working well, when I added the line . won't work anymore.
" if PORTA.1 = 0 then face_east 'limit switch1"
" if PORTA.2 = 0 then hold 'limit switch2 "
Yes, the code compiled in Picbasic Pro 2.44