Skip to content

Commit 1a4529d

Browse files
updating comments
1 parent 764bc7d commit 1a4529d

File tree

4 files changed

+2
-297
lines changed

4 files changed

+2
-297
lines changed

examples/Example2_StatusAndRate/Example2_StatusAndRate.ino

Lines changed: 0 additions & 107 deletions
This file was deleted.

examples/Example3_LCDDemo/Example3_LCDDemo.ino

Lines changed: 0 additions & 189 deletions
This file was deleted.

src/SparkFun_VL53L1X_Arduino_Library.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ uint16_t VL53L1X::getSignalRate()
190190

191191

192192
//Adapted from ST API
193+
//0 is short range, 1 is mid range, 2 is long range.
193194
void VL53L1X::setDistanceMode(uint8_t mode)
194195
{
195196
uint8_t periodA;

src/SparkFun_VL53L1X_Arduino_Library.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class VL53L1X {
8989
boolean newDataReady(); //Polls the measurement completion bit
9090
uint16_t getDistance(); //Returns the results from the last measurement, distance in mm
9191
uint16_t getSignalRate(); //Returns the results from the last measurement, signal rate
92-
void setDistanceMode(uint8_t mode = 2);
92+
void setDistanceMode(uint8_t mode = 2);//Defaults to long range
9393
uint8_t getDistanceMode();
9494
uint8_t getRangeStatus(); //Returns the results from the last measurement, 0 = valid
9595

0 commit comments

Comments
 (0)