please help with BS2p / BS2px pollin and pollrun
chewyewwah
Posts: 4
HELP!
can ANYONE show me how to use POLLIN to read a serveral I/O input, say 8 inputs and trigger a· different POLLRUNs to sunroutines.
ie: each POLLIN will trigger· POLLRUN its oun subroutine,
I am very new to BS2p polling command,
please show me a simple example
Many Thanks!
Chew
can ANYONE show me how to use POLLIN to read a serveral I/O input, say 8 inputs and trigger a· different POLLRUNs to sunroutines.
ie: each POLLIN will trigger· POLLRUN its oun subroutine,
I am very new to BS2p polling command,
please show me a simple example
Many Thanks!
Chew
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
Actually, I am building Micro Sumos which has 3 line sensors, 4 object sensors. I have been using If - Then statment. I would like to use POLLIN and POLLRUN to hopefully improve the respond. therefore I need each sensor to trigger a different action. Any idea???
It is harder if the Stamp is has to be doing other things while waiting for the input events. Is it okay for it to leave at any point without bad consequences? Say, it is running a servo to move it to a certain position, and right in the middle of that an input event happens. Is it okay for it to jump out of that servo routine to handle the input event, maybe not knowing where it left the servo? You have to write code more carefully to handle those situations.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com