use VL6180XA1 chip wothout X-NUCLEO-6180XA1 Board. Simple way to use the chip.

Dependents:   Check_VL6180XA1_ToF

Fork of X_NUCLEO_6180XA1 by ST

Files at this revision

API Documentation at this revision

Comitter:
gallonm
Date:
Fri Nov 06 08:39:27 2015 +0100
Parent:
28:7c9031e96c22
Child:
30:75bf50276881
Commit message:
Updated AlsSetThresholds function

Changed in this revision

Components/VL6180X/vl6180x_class.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Components/VL6180X/vl6180x_class.cpp	Thu Nov 05 17:20:03 2015 +0100
+++ b/Components/VL6180X/vl6180x_class.cpp	Fri Nov 06 08:39:27 2015 +0100
@@ -2689,10 +2689,7 @@
    RawThreshLow=*(uint16_t*)p_low;
    p_high=&RawAlsHigh;
    RawThreshHigh=*(uint16_t*)p_high;
-   //return VL6180x_AlsSetThresholds(Device, RawThreshLow, RawThreshHigh);
-   VL6180x_AlsSetThresholds(Device, RawThreshLow, RawThreshHigh);
-   VL6180x_RdWord(Device, SYSALS_THRESH_HIGH, &RawThreshLow);
-   VL6180x_RdWord(Device, SYSALS_THRESH_LOW, &RawThreshHigh);
+   return VL6180x_AlsSetThresholds(Device, RawThreshLow, RawThreshHigh);
 }