Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Gesture_Sensor by
Revision 1:a4c6fbb79eba, committed 2013-10-21
- Comitter:
- GAT27
- Date:
- Mon Oct 21 20:14:03 2013 +0000
- Parent:
- 0:03bf686bd26a
- Child:
- 2:27f94c9a29ec
- Commit message:
- Individual reads and sample support added.
Changed in this revision
| SI1143.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/SI1143.lib Thu Oct 17 22:34:00 2013 +0000 +++ b/SI1143.lib Mon Oct 21 20:14:03 2013 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/GAT27/code/SI1143/#cb3e8160f18e +http://mbed.org/users/GAT27/code/SI1143/#3fadc61598bc
--- a/main.cpp Thu Oct 17 22:34:00 2013 +0000
+++ b/main.cpp Mon Oct 21 20:14:03 2013 +0000
@@ -12,15 +12,15 @@
int sense1,sense2,sense3;
// Setup the baseline
- sensor.bias();
+ sensor.bias(1,5);
wait(1);
while(1)
{
// Read each led sensor
- sense1 = sensor.sample(1);
- sense2 = sensor.sample(2);
- sense3 = sensor.sample(3);
+ sense1 = sensor.get_ps1(1);
+ sense2 = sensor.get_ps2(1);
+ sense3 = sensor.get_ps3(1);
// Can be changed for different sensitivity
if (sense1 > 80 || sense2 > 80 || sense3 > 80)
