CMPS03 digital compass library.

Fork of CMPS03 by Aaron Berk

Revision:
1:1585ed4179f0
Parent:
0:c6bcc390612a
diff -r c6bcc390612a -r 1585ed4179f0 CMPS03.cpp
--- a/CMPS03.cpp	Sat Nov 27 12:09:27 2010 +0000
+++ b/CMPS03.cpp	Tue Mar 08 14:12:01 2016 +0000
@@ -65,7 +65,7 @@
 int CMPS03::readBearing(void){
 
     char registerNumber = COMPASS_BEARING_WORD_REG;
-    char registerContents[2] = {0x00, 0x00};
+    char registerContents[2] = {0xC0, 0xC1};
     
     //First, send the number of register we wish to read,
     //in this case, register numbers 2, 3, which hold the