Compass

Dependencies:   C12832_lcd mbed

Fork of CMPS03_HelloWorld by Aaron Berk

Files at this revision

API Documentation at this revision

Comitter:
elrb
Date:
Fri May 09 15:24:39 2014 +0000
Parent:
1:3eeda0cce598
Commit message:
compass

Changed in this revision

C12832_lcd.lib Show annotated file Show diff for this revision Revisions of this file
CMPS03.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/C12832_lcd.lib	Fri May 09 15:24:39 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/dreschpe/code/C12832_lcd/#8f86576007d6
--- a/CMPS03.lib	Sat Nov 27 12:11:04 2010 +0000
+++ b/CMPS03.lib	Fri May 09 15:24:39 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/aberk/code/CMPS03/#c6bcc390612a
+http://mbed.org/users/elrb/code/CMPS03/#026373e6c3f7
--- a/main.cpp	Sat Nov 27 12:11:04 2010 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-#include "CMPS03.h"
-
-CMPS03 compass(p9, p10, CMPS03_DEFAULT_I2C_ADDRESS);
-Serial pc(USBTX, USBRX);
-
-int main() {
-
-    pc.printf("Starting CMPS03 test...\n");
-
-    while(1){
-        
-        wait(0.1);
-        
-        pc.printf("Bearing is: %f\n", compass.readBearing() / 10.0);
-    
-    }
-
-}