Comments (5)
@turbinenreiter the driver can already take an I2C object as an argument. We implemented this on 19th March this year.
from micropython-mpu9x50.
The pyb module is specific to the Pyboard. These drivers were developed for this platform.
If you are running the code on a Pyboard, what is the exact error message you are seeing? Otherwise please let us know your platform - we might consider doing a port.
from micropython-mpu9x50.
@peterhinch Got you. That make sense now. Sorry, my bad, I was trying to use it for the Raspberry Pi. I don't know if this is another platform that you would like to support. Appreciated you guys' work.
from micropython-mpu9x50.
I have no plans to support the Pi: my interest is in platforms running MicroPython on bare metal. Unless @turbinenreiter has such intentions you may need to look elsewhere, or DIY. It shouldn't be too difficult, but you'd need to study and compare the Pi's I/O with that of the Pyboard.
from micropython-mpu9x50.
@CharlesCCC
Step 1: Change the whole driver to take an I2C object as argument instead of creating it itself in imu.py, mpu9150 and mpu9250.py.
Step 2: In imu.py change the _read and _write methods to whatever your platforms equivalent of the contained commands are.
Step 3: Send a pull request.
This should really be straightforward.
Find the RPi I2C doc here: http://www.raspberry-projects.com/pi/programming-in-python/i2c-programming-in-python/using-the-i2c-interface-2
Step 1 is something I wanted to do for the longest time, but I switched to using the BMX055 and therefore this is quite low on my list.
from micropython-mpu9x50.
Related Issues (20)
- Magnetometer wrong values and freezes esp32 HOT 17
- "MemoryError:" when trying to run it on an ESP8266 NodeMCU breakout HOT 3
- Filter for magnetometer HOT 25
- Adding support for FIFO buffer HOT 7
- Random KeyboardInterrupt and ASCII disco HOT 2
- Random value from yaw calculation? HOT 5
- How fast we can read data from the sensor HOT 4
- i can't use mpu6050 by ur module as the demo. HOT 6
- MPU6050 onboard DMP (feature request) HOT 2
- Error while using imu.py on Pi Pico HOT 2
- imu.py: Cant convert str to int HOT 1
- INT pin? HOT 1
- MPU exception during startup with RPi Pico HOT 1
- Bad chip ID retrieved with MPU-9250/6500 HOT 3
- Tilt Angle Question HOT 2
- MPU9255 support? HOT 4
- Lopy Migration HOT 4
- Correct breakoutboard? HOT 1
- Porting to ESP32 anyone? HOT 22
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from micropython-mpu9x50.