File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
examples/Example06_DistanceBasicReadings Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ SparkFunXM125Distance radarSensor;
29
29
// I2C default address
30
30
uint8_t i2cAddress = SFE_XM125_I2C_ADDRESS;
31
31
32
- // Presence range in mm used - 300mm to 4000mm (0.3 M to 4 M)
33
- #define MY_XM125_RANGE_START 300
34
- #define MY_XM125_RANGE_END 4000
32
+ // Presence range in mm used - 500mm to 5000mm (0.5 M to 5 M)
33
+ #define MY_XM125_RANGE_START 500
34
+ #define MY_XM125_RANGE_END 5000
35
35
36
36
void setup ()
37
37
{
@@ -67,9 +67,12 @@ void setup()
67
67
Serial.print (MY_XM125_RANGE_START);
68
68
Serial.print (" mm to " );
69
69
Serial.print (MY_XM125_RANGE_END);
70
- Serial.println (" mm" );
71
- Serial.println ();
72
- // New-line and 0.5 second delay for easier reading
70
+ Serial.print (" mm (" );
71
+ Serial.print (MY_XM125_RANGE_START * 0.001 );
72
+ Serial.print (" m to " );
73
+ Serial.print (MY_XM125_RANGE_END * 0.001 );
74
+ Serial.println (" m )" );
75
+
73
76
Serial.println ();
74
77
delay (500 );
75
78
}
You can’t perform that action at this time.
0 commit comments