Shengyuan Chu / MMA8452

Fork of MMA8452 by Craig Evans

Files at this revision

API Documentation at this revision

Comitter:
chushengyuan
Date:
Mon May 11 13:15:23 2015 +0000
Parent:
1:a39442190d5d
Commit message:
Final

Changed in this revision

MMA8452.h Show annotated file Show diff for this revision Revisions of this file
--- a/MMA8452.h	Sat May 09 19:12:39 2015 +0000
+++ b/MMA8452.h	Mon May 11 13:15:23 2015 +0000
@@ -1,8 +1,7 @@
 /**
 @file MMA8452.h
-
-@brief Header file containing member functions and variables
-
+@brief Header file containing member functions and variables.
+@brief Acknowledgements to Dr.Craig A. Evans's Library.
 */
 
 #ifndef MMA8452_H
@@ -26,45 +25,6 @@
 
 #include "mbed.h"
 
-/**
-@brief Library for interfacing with MMA8452 I2C Accelerometer
-
-@see http://www.freescale.com/files/sensors/doc/data_sheet/MMA8452Q.pdf
-@see https://www.sparkfun.com/products/12756
-
-@brief Revision 1.0
-
-@author Craig A. Evans
-@date   March 2015
- *
- * Example:
- * @code
-
-#include "mbed.h"
-#include "MMA8452.h"
-
-MMA8452 mma8452(p28,p27);  // SDA, SCL
-Serial serial(USBTX,USBRX);
-
-int main() {
-
-    mma8452.init();  // 100 Hz update rate, ±4g scale
-
-    Acceleration acceleration;  // Accleration structure declared in MMA8452 class
-
-    while(1) {
-
-        acceleration = mma8452.readValues();   // read current values and print over serial port
-        serial.printf("x = %.2f g y = %.2f g z = %.2f g\n",acceleration.x,acceleration.y,acceleration.z);
-        wait(0.1);   // short delay until next reading
-
-    }
-
-}
-
-
- * @endcode
- */
 class MMA8452
 {
 
@@ -107,4 +67,4 @@
 
 
 
-#endif
\ No newline at end of file
+#endif