serioeseGmbH / BMI160

A MicroPython driver for Bosch's BMI160 IMU

Home Page:https://www.bosch-sensortec.com/bst/products/all_products/bmi160

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BMI160

from machine import Pin, I2C
from BMI160 import BMI160_I2C
from time import sleep_ms
i2c = I2C(sda=Pin(32), scl=Pin(33))
bmi160 = BMI160_I2C(i2c)
while True:
    print("{0:>8}{1:>8}{2:>8}{3:>8}{4:>8}{5:>8}".format(*bmi160.getMotion6()))
    sleep_ms(1000//25)

About

A MicroPython driver for Bosch's BMI160 IMU

https://www.bosch-sensortec.com/bst/products/all_products/bmi160

License:MIT License


Languages

Language:Python 100.0%