Driver for Proximity / Ambient Light Sensor VCNL40xx from Vishay

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
kokisan2000
Date:
Fri Jul 04 21:31:19 2014 +0000
Parent:
0:1f3d09f0060a
Commit message:
insert pins for second I2C bus

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 1f3d09f0060a -r cf336a5443e3 main.cpp
--- a/main.cpp	Sat Nov 30 19:44:13 2013 +0000
+++ b/main.cpp	Fri Jul 04 21:31:19 2014 +0000
@@ -28,7 +28,8 @@
 #include "mbed.h"
 #include "VCNL40x0.h"
 
-VCNL40x0 VCNL40x0_Device (p28, p27, VCNL40x0_ADDRESS);      // Define SDA, SCL pin and I2C address
+//VCNL40x0 VCNL40x0_Device (p28, p27, VCNL40x0_ADDRESS);      // Define SDA, SCL pin and I2C address
+VCNL40x0 VCNL40x0_Device (p9, p10, VCNL40x0_ADDRESS);      // Define SDA, SCL pin and I2C address
 DigitalOut mled0(LED1);                                     // LED #1
 DigitalOut mled1(LED2);                                     // LED #2
 DigitalOut mled2(LED3);                                     // LED #3