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:
- 1:c7215f5f9a72
- Parent:
- 0:437ae08befe3
- Child:
- 2:e31b7064efab
diff -r 437ae08befe3 -r c7215f5f9a72 glibr.h --- a/glibr.h Thu Mar 05 04:53:07 2015 +0000 +++ b/glibr.h Thu Mar 05 06:44:27 2015 +0000 @@ -181,11 +181,14 @@ uint8_t getMode(); bool setLEDDrive(uint8_t drive); bool setProximityGain(uint8_t drive); - + bool setAmbientLightGain(uint8_t drive); + private: uint8_t I2CreadByte(char address, char subAddress); int I2CwriteByte(char address, char subAddress, char data); + bool setProxIntLowThresh(uint8_t threshold); + bool setProxIntHighThresh(uint8_t threshold); I2C i2c; };