You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/Arduino/Example1_Basics/Example1_Basics.ino
+29-60Lines changed: 29 additions & 60 deletions
Original file line number
Diff line number
Diff line change
@@ -50,17 +50,19 @@ void setup() {
50
50
voidloop() {
51
51
52
52
if( myICM.dataReady() ){
53
-
myICM.getAGMT();
54
-
// printRawAGMT( myICM.agmt );
55
-
printScaledAGMT( myICM.agmt);
53
+
myICM.getAGMT();// The values are only updated when you call 'getAGMT'
54
+
// printRawAGMT( myICM.agmt ); // Uncomment this to see the raw values, taken directly from the agmt structure
55
+
printScaledAGMT( myICM.agmt);// This function takes into account the sclae settings from when the measurement was made to calculate the values with units
56
56
delay(30);
57
57
}else{
58
-
Serial.println("0");
58
+
Serial.println("Waiting for data");
59
+
delay(500);
59
60
}
61
+
60
62
}
61
63
62
64
63
-
65
+
// Below here are some helper functions to print the data nicely!
0 commit comments