TSL2561 light sensor lib, tested with Multitech xDot-DK.

Fork of TSL2561 by Tuan Anh Nguyen

Files at this revision

API Documentation at this revision

Comitter:
lucianovici
Date:
Sat Nov 26 14:58:19 2016 +0000
Parent:
1:ab906ac6e90b
Commit message:
Update default pins for I2C

Changed in this revision

TSL2561.h Show annotated file Show diff for this revision Revisions of this file
--- a/TSL2561.h	Thu Jan 09 10:16:51 2014 +0000
+++ b/TSL2561.h	Sat Nov 26 14:58:19 2016 +0000
@@ -4,8 +4,8 @@
 
 #include "mbed.h"
 
-#define TSL2561_I2C_PINNAME_SDA p28
-#define TSL2561_I2C_PINNAME_SCL p27
+#define TSL2561_I2C_PINNAME_SDA I2C_SDA
+#define TSL2561_I2C_PINNAME_SCL I2C_SCL
 
 #define TSL2561_VISIBLE         2                   // channel 0 - channel 1
 #define TSL2561_INFRARED        1                  // channel 1