http://wiki.seeed.cc/Grove-Gesture_v1.0/

Files at this revision

API Documentation at this revision

Comitter:
matsujirushi
Date:
Tue Dec 19 15:26:16 2017 +0900
Parent:
0:ea8f1bb16afc
Commit message:
Support for Mbed OS 2.

Changed in this revision

PAJ7620U2.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r ea8f1bb16afc -r b3125f4faa38 PAJ7620U2.cpp
--- a/PAJ7620U2.cpp	Mon Dec 18 13:48:31 2017 +0900
+++ b/PAJ7620U2.cpp	Tue Dec 19 15:26:16 2017 +0900
@@ -277,9 +277,9 @@
 bool PAJ7620U2::Init()
 {
 	// Wake up.
-	Thread::wait(1);
+	wait_us(700);
 	RegisterWrite(0xEF, 0);						// R_RegBankSel
-	Thread::wait(1);
+	wait_us(400);
 
 	if (!RegisterWrite(0xEF, 0)) return false;	// R_RegBankSel