Now you can use NC as InterruptIn
Fork of X_NUCLEO_6180XA1 by
Diff: Components/VL6180X/vl6180x_cfg.h
- Revision:
- 24:025afc3fe30f
- Parent:
- 22:1a6327e9a7e6
- Child:
- 33:1573db91352c
--- a/Components/VL6180X/vl6180x_cfg.h Fri Oct 30 11:35:36 2015 +0100 +++ b/Components/VL6180X/vl6180x_cfg.h Mon Nov 02 14:02:53 2015 +0100 @@ -58,7 +58,7 @@ * @li 3 : Fixed scaling by 3 * @li -1 -2 -3 : Run time programmable through @a VL6180x_UpscaleSetScaling(). Default scaling factore is -VL6180x_UPSCALE_SUPPORT \n */ -#define VL6180x_UPSCALE_SUPPORT -1 +//#define VL6180x_UPSCALE_SUPPORT -1 /** * @def VL6180x_ALS_SUPPORT @@ -106,8 +106,17 @@ * Device that do not formally support extended ranging should only be used with a scaling factor of 1. * Correct operation with scaling factor other than 1 (>200mm ) is not granted by ST. */ -#define VL6180x_EXTENDED_RANGE 0 +//#define VL6180x_EXTENDED_RANGE 0 + +#define EXTENDED_RANGE_50CM 0 +#if EXTENDED_RANGE_50CM +#define VL6180x_UPSCALE_SUPPORT -3 +#define VL6180x_EXTENDED_RANGE 1 +#else +#define VL6180x_UPSCALE_SUPPORT -1 +#define VL6180x_EXTENDED_RANGE 0 +#endif #if (VL6180x_EXTENDED_RANGE) && (VL6180x_ALS_SUPPORT) #warning "Als support should be OFF for extended range"