Skip to content

matemaciek/mpu9250_CircuitPython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mpu9250_CircuitPython

Simple MPU9250 over I2C client working with CircuitPython.

Developed for CP v6.2.

Don't need any extra libraries.

Heavilly inspired by:

Example

Copy mpu9250.py to /lib folder on your board and run code below (example.py):

import board, busio, mpu9250, time

i2c = busio.I2C(board.GP27, board.GP26)
imu = mpu9250.IMU(i2c)
while(True):
    print(imu.acc, "g")
    print(imu.gyr, "º/s")
    print(imu.mag, "uT")
    print(imu.tmp, "ºC")
    time.sleep(0.5)

About

MPU9250 over I2C client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages