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

Files at this revision

API Documentation at this revision

Comitter:
kbhagat6
Date:
Wed Mar 11 15:55:12 2015 +0000
Parent:
12:63c81930b5d9
Child:
14:5e5994418e97
Commit message:
updated. changed nearcount to 5

Changed in this revision

glibr.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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;