Hi,
now the motor control case statement selects ok when i use numbers but i would much prefer to use text, can anyone help..
I'm not sure I understand that correctly but let's say that this work
Code:
motor_control:
select case motor_actuator
case 1
portb = %00000001
case 2
portb = %00000010
end select
return
Then set up some constants matching those numbers, like:
Code:
Left CON 1
Right CON2
Forward CON 4
Reverse CON 8
select case motor_actuator
case Left
portb = %00000001
case Right
portb = %00000010
'and so on.....
end select
return
Sorry if I misunderstood.
/Henrik Olsson.
Bookmarks