Uses the APDS_9960 Digital Proximity, Ambient Light, RGB and Gesture Sensor library to play detected gesture sounds on a speaker from the SDcard
Dependencies: mbed SDFileSystem wave_player
Diff: glibr.h
- Revision:
- 3:26146a08bb22
- Parent:
- 2:e31b7064efab
- Child:
- 4:84545b0e63a9
diff -r e31b7064efab -r 26146a08bb22 glibr.h --- a/glibr.h Thu Mar 05 21:52:01 2015 +0000 +++ b/glibr.h Thu Mar 05 22:23:50 2015 +0000 @@ -187,6 +187,16 @@ uint8_t getGestureGain(); bool setGestureGain(uint8_t gain); + bool enableLightSensor(bool interrupts); + bool disableLightSensor(); + bool enableProximitySensor(bool interrupts); + bool disableProximitySensor(); + + bool enableGestureSensor(bool interrupts); + bool disableGestureSensor(); + bool isGestureAvailable(); + + private: uint8_t I2CreadByte(char address, char subAddress); int I2CwriteByte(char address, char subAddress, char data);