Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: CalibrateMagneto QuaternionMath
Fork of SML2 by
Accelerometer.h
- Committer:
- pvaibhav
- Date:
- 2015-02-18
- Revision:
- 8:cba37530d480
- Parent:
- 7:604a8369b801
- Child:
- 32:d37447aec6b4
File content as of revision 8:cba37530d480:
#ifndef _H_ACCELEROMETER_H
#define _H_ACCELEROMETER_H
#include "I2CPeripheral.h"
#include "Sensor.h"
class Accelerometer : public I2CPeripheral, public Sensor
{
public:
Accelerometer(I2C &i2c);
virtual bool powerOn();
virtual void powerOff();
virtual void start();
virtual void stop();
virtual Vector3 read();
};
#endif
