Kenji Arai
/
Check_VL6180XA1_ToF
Check program for 6180XA1_simple lib.
Revision 1:163bbf3bfc20, committed 2018-02-01
- Comitter:
- kenjiArai
- Date:
- Thu Feb 01 12:10:45 2018 +0000
- Parent:
- 0:91db3c5d99f6
- Commit message:
- modify for new library
Changed in this revision
6180XA1_simple.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 91db3c5d99f6 -r 163bbf3bfc20 6180XA1_simple.lib --- a/6180XA1_simple.lib Sun Jan 28 02:14:33 2018 +0000 +++ b/6180XA1_simple.lib Thu Feb 01 12:10:45 2018 +0000 @@ -1,1 +1,1 @@ -https://os.mbed.com/users/kenjiArai/code/6180XA1_simple/#81afbb75311d +https://os.mbed.com/users/kenjiArai/code/6180XA1_simple/#972b4898a007
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;