ping ren / MMA8452

Fork of MMA8452 by Craig Evans

Revision:
2:93e89f3b0649
Parent:
1:0ab483c143d4
--- a/MMA8452.h	Wed Apr 29 14:39:56 2015 +0000
+++ b/MMA8452.h	Mon May 11 19:35:34 2015 +0000
@@ -1,3 +1,9 @@
+/**************************************
+Multifunction Protractor code N5110.h file
+EEE department 
+university of leeds
+1 may 2015
+**************************************/
 #ifndef MMA8452_H
 #define MMA8452_H
 
@@ -19,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
 {