APDS-9960 Light, RGB, Proximity, and Gesture Sensor https://www.sparkfun.com/products/12787 This library interfaces the APDS-9960 to Mbed over I2C. The library relies on the I2C library. To use the library, instantiate a glibr object, call ginit(), and call the appropriate functions.

Dependents:   Gesture_User_Interface car_test_v1 Capt_couleur_CAN Capt_couleur_smart

Fork of APDS_9960 by Krishan Bhagat

Revision:
2:ba051af6731a
Parent:
0:1aac12a5f1e0
--- a/glibr.h	Thu Mar 12 21:12:45 2015 +0000
+++ b/glibr.h	Mon Apr 27 02:05:49 2015 +0000
@@ -83,11 +83,11 @@
 #define APDS9960_GVALID         0x01
 
 /* On/Off definitions */
-#define OFF                     0
-#define ON                      1
+#define Off                     0
+#define On                      1
 
 /* Acceptable parameters for setMode */
-#define POWER                   0
+#define Power                   0
 #define AMBIENT_LIGHT           1
 #define PROXIMITY               2
 #define WAIT                    3