UPM

The UPM API is a high level sensor library for IoT devices using MRAA. See examples here. Back to index page.
SparkFun sensor images provided under CC BY-NC-SA-3.0.

MPU9250 Class

Module: mpu9150

This module defines the MPU9250 interface for libmpu9150
mpu9250.jpg

Item Index

Methods

MPU9250

(
  • bus
  • address
  • magAddress
  • enableAk8975
)
Number

MPU9250 constructor

Parameters:

  • bus Number

    I2C bus to use

  • address Number

    The address for this device

  • magAddress Number

    The address of the connected magnetometer

  • enableAk8975 Boolean

    Enables i2c bypass mode for magnetometer, default is true

Returns:

Number:

getTemperature

() Number

get the temperature value

Returns:

Number:

the temperature value in degrees Celsius