I have seen that some code to read an imu is provided (seems to be from @rock) (https://github.com/Xilinx/PYNQ/blob/master/pynq/lib/pmod/pmod_grove_imu.py). I have a similar board from WaveShare which has the same MPU9250 and the BMP180. However, i do not have a Grove pmod adapter so I would like to directly use 2 pins of the PMOD (A or B, doesn’t matter) or the any of the arduino shield headers. So, where should I define the PINS I want to use in the code?
Moreover, I see that it also uses the .bin file. What is this for?
I am running everything directly on the pynq (via ssh) and I would like to run the python script but I haven’t succeed so far:
xilinx@pynq:~$ sudo python3.6 Python 2.7.15rc1 (default, Apr 15 2018, 21:51:34) [GCC 7.3.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from pynq.lib.pmod import pmod_grove_imu
And then? How should I call the functions?
imu = pmod_grove_imu.Grove_IMU() ?
Thank you for your help.