- Use the python-ev3 API
Note that to run the code on the robot only through the ev3 interface, you must have an executable shell script.
The shell script must initialize the virtual environment to allow for the ev3-python packages.
The commands are: source /etc/bash_completion.d/virtualenvwrapper workon ev3_py34