Tomo Yamanaka / Mbed 2 deprecated Gesture_Sensor_Sample

Dependencies:   SI1143 mbed

Fork of Gesture_Sensor by Guillermo Torijano

Files at this revision

API Documentation at this revision

Comitter:
1050186
Date:
Tue Apr 19 02:43:43 2016 +0000
Parent:
1:a4c6fbb79eba
Commit message:
First commit

Changed in this revision

SI1143.lib Show annotated file Show diff for this revision Revisions of this file
TextLCD.lib Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r a4c6fbb79eba -r 27f94c9a29ec SI1143.lib
--- a/SI1143.lib	Mon Oct 21 20:14:03 2013 +0000
+++ b/SI1143.lib	Tue Apr 19 02:43:43 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/GAT27/code/SI1143/#3fadc61598bc
+http://mbed.org/users/GAT27/code/SI1143/#50b60d59d568
diff -r a4c6fbb79eba -r 27f94c9a29ec TextLCD.lib
--- a/TextLCD.lib	Mon Oct 21 20:14:03 2013 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-https://mbed.org/users/simon/code/TextLCD/#44f34c09bd37
diff -r a4c6fbb79eba -r 27f94c9a29ec main.cpp
--- a/main.cpp	Mon Oct 21 20:14:03 2013 +0000
+++ b/main.cpp	Tue Apr 19 02:43:43 2016 +0000
@@ -1,7 +1,7 @@
 #include "mbed.h"
 #include "SI1143.h"
 
-SI1143 sensor(p28, p27);
+SI1143 sensor(I2C_SDA , I2C_SCL);
 
 DigitalOut led1(LED1);
 DigitalOut led2(LED2);
@@ -11,10 +11,12 @@
 {
     int sense1,sense2,sense3;
     
+    printf("SI1143 Gesture Sensor setting...\n");
     // Setup the baseline
     sensor.bias(1,5);
-    wait(1);
+    wait(1.0);
     
+    printf("Sensor start!\n");
     while(1)
     {
         // Read each led sensor
@@ -56,5 +58,6 @@
         
         //Numeriacl output through terminal
         printf("%d-%d-%d\r\n",sense1,sense2,sense3);
+        wait(0.05);
     }
 }
diff -r a4c6fbb79eba -r 27f94c9a29ec mbed.bld
--- a/mbed.bld	Mon Oct 21 20:14:03 2013 +0000
+++ b/mbed.bld	Tue Apr 19 02:43:43 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/a9913a65894f
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/082adc85693f
\ No newline at end of file