only test purpose not official

Files at this revision

API Documentation at this revision

Comitter:
kenjiArai
Date:
Fri Feb 07 00:52:53 2020 +0000
Parent:
4:1fe398a31de1
Commit message:
only test purpose not official

Changed in this revision

glibr.cpp Show annotated file Show diff for this revision Revisions of this file
glibr.h Show annotated file Show diff for this revision Revisions of this file
diff -r 1fe398a31de1 -r 20566fe6ed51 glibr.cpp
--- a/glibr.cpp	Sat Dec 23 16:56:44 2017 +0000
+++ b/glibr.cpp	Fri Feb 07 00:52:53 2020 +0000
@@ -440,7 +440,9 @@
     while(1) {
       
         /* Wait some time to collect next batch of FIFO data */
-        wait(FIFO_PAUSE_TIME);
+        // by Arai / JH1PJL
+        /* wait(FIFO_PAUSE_TIME); */
+        ThisThread::sleep_for(FIFO_PAUSE_TIME);
         
         /* Get the contents of the STATUS register. Is data still valid? */
           
@@ -524,7 +526,9 @@
         } else {
     
             /* Determine best guessed gesture and clean up */
-            wait(FIFO_PAUSE_TIME);
+            // by Arai / JH1PJL
+            /* wait(FIFO_PAUSE_TIME); */
+            ThisThread::sleep_for(FIFO_PAUSE_TIME);
             decodeGesture();
             motion = gesture_motion_;
 #if DEBUG
diff -r 1fe398a31de1 -r 20566fe6ed51 glibr.h
--- a/glibr.h	Sat Dec 23 16:56:44 2017 +0000
+++ b/glibr.h	Fri Feb 07 00:52:53 2020 +0000
@@ -19,7 +19,9 @@
 #define APDS9960_ID_2           0x9C 
 
 /* Misc parameters */
-#define FIFO_PAUSE_TIME         0.10      // Wait period (ms) between FIFO reads
+// by Arai / JH1PJL
+/* #define FIFO_PAUSE_TIME         0.10      // Wait period (ms) between FIFO reads */
+#define FIFO_PAUSE_TIME         100     // Wait period (ms) between FIFO reads
 
 /* APDS-9960 register addresses */
 #define APDS9960_ENABLE         0x80