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.cpp
- Revision:
- 13:5930645dc5f0
- Parent:
- 11:ea43b0b83222
- Child:
- 15:339ffde549dc
diff -r 63c81930b5d9 -r 5930645dc5f0 glibr.cpp --- a/glibr.cpp Wed Mar 11 15:49:34 2015 +0000 +++ b/glibr.cpp Wed Mar 11 15:55:12 2015 +0000 @@ -906,7 +906,7 @@ gesture_near_count_++; } - if( gesture_near_count_ >= 10 ) { + if( gesture_near_count_ >= 5 ) { gesture_ud_count_ = 0; gesture_lr_count_ = 0; gesture_ud_delta_ = 0; @@ -916,11 +916,11 @@ } // #if DEBUG - printf("UD_CT: %d\n",gesture_ud_count_); + /* printf("UD_CT: %d\n",gesture_ud_count_); printf("LR_CT: %d\n",gesture_lr_count_); printf("NEAR_CT: %d\n",gesture_near_count_); printf(" FAR_CT: %d\n",gesture_far_count_); - printf("----------"); + printf("----------"); */ //#endif */ return false;