Simple test application for DMU Library
Dependencies: SiliconSensingDMU mbed
Revision 0:e1fffc72ceff, committed 2013-03-11
- Comitter:
- ramwilliford
- Date:
- Mon Mar 11 16:35:57 2013 +0000
- Commit message:
- Latest
Changed in this revision
diff -r 000000000000 -r e1fffc72ceff SiliconSensingDMU.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SiliconSensingDMU.lib Mon Mar 11 16:35:57 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/ramwilliford/code/SiliconSensingDMU/#e4342b551612
diff -r 000000000000 -r e1fffc72ceff main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Mar 11 16:35:57 2013 +0000 @@ -0,0 +1,18 @@ +#include "mbed.h" +#include "DMU.h" + +DMU dmu(p11, p12, p13, p8, p9, p10); +Serial pc(USBTX, USBRX); + + +int main() { + dmu.test(); + while(1){ + pc.printf("Y accel:%.1f\n",dmu.acceleration('y')); + pc.printf("X accel:%.1f\n",dmu.acceleration('x')); + pc.printf("Z accel:%.1f\n",dmu.acceleration('z')); + pc.printf("Pitch:%.2f\n",dmu.pitch()); + pc.printf("Roll:%.2f\n",dmu.roll()); + pc.printf("Yaw:%.2f\n",dmu.yaw()); + } +}
diff -r 000000000000 -r e1fffc72ceff mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Mar 11 16:35:57 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/5e5da4a5990b \ No newline at end of file