Open bartonekJ opened 8 years ago
You should probably properly close the serial connection at the end of the script. If you exit the script there is not way to maintain a state that would tell you there is already a connection.
You'll want to call board.exit()
at the end of the script, or when exiting.
Hi, i'd like to control arduino from animation package called Autodesk Maya. I'm also quite new to python, so forgive me stupid questions, please.
Lets say I'm running this script in Maya:
and then some "for loop"
But if i'll run that script again, maya retuns:
SerialException: could not open port 'COM3': WindowsError(5, 'Access is denied.')
So id like to check if COM3 is already connected.I've tried following code, but it's obviously nonsense:
Is there some way how to do it, please ?