Having problems with creating a LF program for my bot. I got an example from the net (Linbot) and tried to modify it to work for me. But I'm using 3 sensors instead of 4 so I'm guessing there's something about SENSOR_REG that I have missed or overlooked. Probably wrong bits or something... Any ideas?
compiles fine and even works when covering left sensor.
And would like to post another question without making a new topic... how do I change first 4 or last 4 bits of a port? Controlling two stepper motors with PORTB and would like to give the steppers different speeds via changing the pause between steps. That means I need to change one motor status without touching the other... can't figure this out...