tuupola / micropython-mpu9250

MicroPython I2C driver for MPU9250 9-axis motion tracking device
MIT License
141 stars 47 forks source link

Add support for onchip temperature #1

Closed tuupola closed 5 years ago

tuupola commented 6 years ago

Should look something like:

from machine import I2C, Pin
from mpu9250 import MPU9250

i2c = I2C(scl=Pin(22), sda=Pin(21))
sensor = MPU9250(i2c)

print(sensor.temperature)
vvkuryshev commented 5 years ago

Hello, Mika!

Great project. It works on esp8266 (I use acceleration and rotation measurement). But in fact temperature is not added to mpu9250 module.

tuupola commented 5 years ago

Yeah temperature is still on TODO list. I should pay attention to this library again in the near future.