Example app for the Grove 3-axis accelerometer on the NCS36510 mbed board.

Dependencies:   Grove_3-Axis_Digital_Accelerometer_MMA7660FC_Library SeeedGrayOLED mbed-os

Fork of Seeed_Grove_3-Axis_Digital_Accelorometer_Example by Seeed

Files at this revision

API Documentation at this revision

Comitter:
jacobjohnson
Date:
Tue Feb 28 03:59:32 2017 +0000
Parent:
1:94e29063fb0d
Commit message:
Tested and works;

Changed in this revision

SeeedGrayOLED.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-os.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SeeedGrayOLED.lib	Tue Feb 28 03:59:32 2017 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/teams/onsemi/code/SeeedGrayOLED/#e14364aac2ca
--- a/main.cpp	Sat Sep 06 00:47:38 2014 +0000
+++ b/main.cpp	Tue Feb 28 03:59:32 2017 +0000
@@ -1,6 +1,7 @@
 
 #include <mbed.h>
 #include "MMA7660.h"
+#include "SeeedGrayOLED.h"
 
 MMA7660 accelemeter;
 
@@ -9,10 +10,13 @@
     int8_t x, y, z;
     float ax,ay,az;
     accelemeter.init();  
+        
     while(1){
         accelemeter.getXYZ(&x,&y,&z);
         printf("X=%d, Y=%d, Z=%d, ",x,y,z);
         
+      
+            
         accelemeter.getAcceleration(&ax,&ay,&az);
         printf("Accleration of X=%2.2fg, Y=%2.2fg, Z=%2.2fg\n\r",ax,ay,az);
         wait(.5);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-os.lib	Tue Feb 28 03:59:32 2017 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/teams/onsemi/code/mbed-os/#098463de4c5d
--- a/mbed.bld	Sat Sep 06 00:47:38 2014 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/9327015d4013
\ No newline at end of file