Example program for FXOS8700Q sensor

Dependencies:   FXOS8700Q mbed

Fork of Hello_FXOS8700Q by Freescale

Revision:
3:912ef9b2cc6a
Parent:
2:5f34f99b07c5
Child:
4:4b494ca218ff
--- a/main.cpp	Wed Apr 23 15:45:39 2014 +0000
+++ b/main.cpp	Wed Apr 23 16:43:23 2014 +0000
@@ -5,6 +5,41 @@
 FXOS8700Q combo( PTE25, PTE24, FXOS8700CQ_SLAVE_ADDR1); // Proper Ports and I2C Address for K64F Freedom board
 Serial pc(USBTX, USBRX);
 
+/*
+int main(void) {
+    MotionSensor sensor;
+
+    sensor.sampleRate(50);
+    sensor.enable();
+    while(1)
+    {
+        if(sensor.dataReady())
+        {
+            SensorDataUnits formatted_data;            
+            sensor.getAxis(formatted_data);
+            printf(asdfadsf);
+        }
+        if(sensor.dataReady())
+        {
+            SensorDataCounts raw_data;            
+            sensor.getAxis(formatted_data);
+            printf(asdfasdf);
+        }
+        if(sensor.dataReady())
+        {
+            printf x(),y(),x());
+        }
+        if(sensor.dataReady())
+        {
+            printf(x(),y(),z());
+        }
+    }
+}
+
+*/
+
+
+
 
 int main() {
 float acc_data[3], mag_data[3];