![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
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:
- 10:e8adab2fb829
- Parent:
- 9:286d00d9db80
--- a/glibr.h Fri Mar 06 22:59:40 2015 +0000 +++ b/glibr.h Mon Mar 09 21:17:34 2015 +0000 @@ -19,7 +19,7 @@ #define APDS9960_ID_2 0x9C /* Misc parameters */ -#define FIFO_PAUSE_TIME 30 // Wait period (ms) between FIFO reads +#define FIFO_PAUSE_TIME 0.30 // Wait period (ms) between FIFO reads /* APDS-9960 register addresses */ #define APDS9960_ENABLE 0x80 @@ -326,7 +326,7 @@ uint8_t I2CreadByte(char address, char subAddress); - int I2CwriteByte(char address, char subAddress, char data); + int I2CwriteByte(char address, char subAddress, char data); //if return value is 1, then ack not sent int I2CReadDataBlock(char address, char subAddress, char *data, unsigned int len); I2C i2c;