22

Dependencies:   MMA8451Q mbed

Files at this revision

API Documentation at this revision

Comitter:
prtkmynk
Date:
Sun Apr 02 11:56:23 2017 +0000
Commit message:
22; ;

Changed in this revision

MMA8451Q.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MMA8451Q.lib	Sun Apr 02 11:56:23 2017 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/emilmont/code/MMA8451Q/#c4d879a39775
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Apr 02 11:56:23 2017 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"
+#include "MMA8451Q.h"
+
+MMA8451Q acc(PTE25,PTE24,0X1d<<1);
+Serial pc(USBTX,USBRX);
+
+float xaxis;
+char choice;
+
+main()
+{ 
+    while(1)
+    { 
+    
+    xaxis = acc.getAccX();
+    pc.printf("%0.2f",xaxis);
+    wait(3);
+    }
+}
+    
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun Apr 02 11:56:23 2017 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/9baf128c2fab
\ No newline at end of file