Kenji Arai
/
Check_VL6180XA1_ToF
Check program for 6180XA1_simple lib.
Diff: main.cpp
- Revision:
- 1:163bbf3bfc20
- Parent:
- 0:91db3c5d99f6
diff -r 91db3c5d99f6 -r 163bbf3bfc20 main.cpp --- a/main.cpp Sun Jan 28 02:14:33 2018 +0000 +++ b/main.cpp Thu Feb 01 12:10:45 2018 +0000 @@ -13,7 +13,7 @@ * http://www.page.sannet.ne.jp/kenjia/index.html * http://mbed.org/users/kenjiArai/ * Created: January 25th, 2018 - * Revised: January 28th, 2018 + * Revised: Feburary 1st, 2018 */ /* @@ -31,9 +31,8 @@ // Constructor ---------------------------------------------------------------- DigitalOut myled(LED1); Serial pc(USBTX, USBRX); -DevI2C i2c(I2C_SDA, I2C_SCL); - // I2C, Chip Enable, Interrut input -VL6180X sensor(i2c, D7, NC); +I2C i2c(I2C_SDA, I2C_SCL); +VL6180X sensor(i2c, D8); Timer t;