Adafruit MPU6050 Sensor Library
Public Member Functions | List of all members
Adafruit_MPU6050_Accelerometer Class Reference

#include <Adafruit_MPU6050.h>

Inheritance diagram for Adafruit_MPU6050_Accelerometer:

Public Member Functions

 Adafruit_MPU6050_Accelerometer (Adafruit_MPU6050 *parent)
 Create an Adafruit_Sensor compatible object for the accelerometer sensor. More...
 
bool getEvent (sensors_event_t *)
 Gets the accelerometer as a standard sensor event. More...
 
void getSensor (sensor_t *)
 Gets the sensor_t data for the MPU6050's accelerometer.
 

Detailed Description

Adafruit Unified Sensor interface for accelerometer component of MPU6050

Constructor & Destructor Documentation

◆ Adafruit_MPU6050_Accelerometer()

Adafruit_MPU6050_Accelerometer::Adafruit_MPU6050_Accelerometer ( Adafruit_MPU6050 parent)
inline

Create an Adafruit_Sensor compatible object for the accelerometer sensor.

Parameters
parentA pointer to the MPU6050 class

Member Function Documentation

◆ getEvent()

bool Adafruit_MPU6050_Accelerometer::getEvent ( sensors_event_t *  event)

Gets the accelerometer as a standard sensor event.

Parameters
eventSensor event object that will be populatedx
Returns
True

The documentation for this class was generated from the following files: