eclipse / upm

UPM is a high level repository that provides software drivers for a wide variety of commonly used sensors and actuators. These software drivers interact with the underlying hardware platform through calls to MRAA APIs.
MIT License
658 stars 411 forks source link

How to use examples of upm with Onion Omega 2 #684

Open davidhsu0324 opened 4 years ago

davidhsu0324 commented 4 years ago

Hi, I want to know how to use upm on Onion Omega 2 because I tried to import pyupm_mg811 but it showed. ImportError: No module named upm I am using Python2.7 by the way. I just wonder that if Onion Omega 2 has already pre-installed upm or I should build it. Can anybody help me? Feel really appreciate about it!

Propanu commented 4 years ago

Hi @davidhsu0324, check to see if the pyupm_* packages are on you board. If they aren't you'll likely have to build the Eclipse MRAA/UPM projects for your target from source to generate them. Once you have the Python packages on the board don't forget to add them to the PYTHONPATH variable.

davidhsu0324 commented 4 years ago

@Propanu , Thank you for your reply, I will try to build it.