Parallel Execution Paths Help
LaxAddict08
Posts: 2
I am new to the world of BASIC STAMP microcontrollers and am using a BSII. I was wondering if it is possible in PBASIC to write two loops or sub-routines that execute simultaneously [noparse][[/noparse]as in sending a PULSOUT to a continuous rotation servo and executing a counter based on a switch]. Thus far I have realized that PBASIC compiles and executes line by line. Any help would be greatly appreciated!
Comments
So, you can call a subroutine that sends the PULSOUT to the servo. Now you have 20 to 50 milliseconds to do something else, before you have to send the PULSOUT again. So during that time you can monitor the switch.