-
Dependents: VL53L0X_Continuous_Ranging_Example
Fork of vl53l0x_api by
Revision 1:a0dafcd9fd11, committed 2017-02-15
- Comitter:
- dfulford6
- Date:
- Wed Feb 15 15:45:28 2017 +0000
- Parent:
- 0:e6fcdb78a136
- Commit message:
- Updated to be used with LPC 1768
Changed in this revision
vl53l0x_i2c_platform.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r e6fcdb78a136 -r a0dafcd9fd11 vl53l0x_i2c_platform.cpp --- a/vl53l0x_i2c_platform.cpp Tue Aug 23 05:14:05 2016 +0000 +++ b/vl53l0x_i2c_platform.cpp Wed Feb 15 15:45:28 2017 +0000 @@ -2,7 +2,8 @@ #include "vl53l0x_i2c_platform.h" #include "vl53l0x_platform.h" -I2C i2c(I2C_SDA, I2C_SCL); +//I2C i2c(I2C_SDA, I2C_SCL); +I2C i2c(p9, p10); // default SDA and SCL lines for LPC 1768 int VL53L0X_scan( void ) { @@ -11,7 +12,7 @@ char cmd[2]; cmd[0]=0x01; cmd[1]=0x00; - i2c.frequency(100000); + i2c.frequency(100000);//default i2c frequency for (i = 0; i<0xFF; i++) { cmd[0]=i;