New to this so if it has been covered before, please redirect.
Trying to get to the meaning of init:
Wherever I see it in the manuals, it is used in conjunction with an example of another label such as below. I can't seem to find any real explanation. I can only imagine it sets up the internals somehow but is it always necessary?
Also, is there difference for servo and servopos and if so, what?
init: servo 4,75 ‘ initialise servo
main: servopos 4,75 ‘ move servo to one end
pause 2000 ‘ wait 2 seconds
servopos 4,225 ‘ move servo to other end
pause 2000 ‘ wait 2 seconds
goto main ‘ loop back to start
Trying to get to the meaning of init:
Wherever I see it in the manuals, it is used in conjunction with an example of another label such as below. I can't seem to find any real explanation. I can only imagine it sets up the internals somehow but is it always necessary?
Also, is there difference for servo and servopos and if so, what?
init: servo 4,75 ‘ initialise servo
main: servopos 4,75 ‘ move servo to one end
pause 2000 ‘ wait 2 seconds
servopos 4,225 ‘ move servo to other end
pause 2000 ‘ wait 2 seconds
goto main ‘ loop back to start