kl

Fork of VL6180x_lib by Robotique FIP

Files at this revision

API Documentation at this revision

Comitter:
julientiron
Date:
Sat Apr 02 10:06:47 2016 +0000
Parent:
0:84fb42fedc5b
Commit message:
k;

Changed in this revision

VL6180x.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 84fb42fedc5b -r f65cc86f43a2 VL6180x.cpp
--- a/VL6180x.cpp	Tue Jul 07 20:36:43 2015 +0000
+++ b/VL6180x.cpp	Sat Apr 02 10:06:47 2016 +0000
@@ -42,7 +42,8 @@
   VL6180x_setRegister(0x0207, 0x01);
   VL6180x_setRegister(0x0208, 0x01);
   VL6180x_setRegister(0x0096, 0x00);
-  VL6180x_setRegister(0x0097, 0xfd);
+  VL6180x_setRegister(0x0097, 0xfd); //lecture 25cm
+  //VL6180x_setRegister(0x0097, 0x54); //lecture 50cm
   VL6180x_setRegister(0x00e3, 0x00);
   VL6180x_setRegister(0x00e4, 0x04);
   VL6180x_setRegister(0x00e5, 0x02);
@@ -54,9 +55,11 @@
   VL6180x_setRegister(0x00dc, 0x03);
   VL6180x_setRegister(0x00dd, 0xf8);
   VL6180x_setRegister(0x009f, 0x00);
-  VL6180x_setRegister(0x00a3, 0x3c);
+  VL6180x_setRegister(0x00a3, 0x3c); //lecture 25cm
+  //VL6180x_setRegister(0x00a3, 0x28); //lecture 50cm
   VL6180x_setRegister(0x00b7, 0x00);
-  VL6180x_setRegister(0x00bb, 0x3c);
+  VL6180x_setRegister(0x00bb, 0x3c); // lecture 25cm
+  //VL6180x_setRegister(0x00bb, 0x28); // lecture 50cm
   VL6180x_setRegister(0x00b2, 0x09);
   VL6180x_setRegister(0x00ca, 0x09);  
   VL6180x_setRegister(0x0198, 0x01);
@@ -69,7 +72,6 @@
   VL6180x_setRegister(0x01ac, 0x3e);
   VL6180x_setRegister(0x01a7, 0x1f);
   VL6180x_setRegister(0x0030, 0x00);
-
   return 0;
 }
 VL6180x::~VL6180x(void) {