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
00001 #ifndef _H_ACCELEROMETER_H 00002 #define _H_ACCELEROMETER_H 00003 00004 #include "I2CPeripheral.h" 00005 #include "Sensor.h" 00006 00007 class Accelerometer : public I2CPeripheral, public Sensor 00008 { 00009 public: 00010 Accelerometer(I2C &i2c); 00011 00012 virtual bool powerOn(); 00013 virtual void powerOff(); 00014 virtual void start(); 00015 virtual void stop(); 00016 00017 virtual Vector3 read(); 00018 00019 private: 00020 InterruptIn int1; 00021 InterruptIn int2; 00022 }; 00023 00024 #endif
Generated on Wed Jul 13 2022 08:50:41 by
