This message was posted on behalf of Intel Corporation1 of 1 people found this helpful
If I understood you well, you want to send information from the Python script to the Arduino sketch, right? If so, I recommend you to check the following guide that explains how to share data between environments: https://software.intel.com/en-us/blogs/2015/05/05/efficient-data-sharing-using-interrupts-on-intel-edison
The guide uses a Nodejs script in the explanation, but you could use a Python script instead. I hope you find it useful.