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.
Dependents: Proximity_Sensor_2_sense Proximity_Sensor_2_detect Proximity_Sensor_2_detect
Fork of SI1143 by
Diff: SI1143.cpp
- Revision:
- 3:cb3e8160f18e
- Parent:
- 2:21381f11a5af
- Child:
- 4:af8f820733e0
--- a/SI1143.cpp Thu Oct 17 21:03:01 2013 +0000
+++ b/SI1143.cpp Thu Oct 17 22:03:54 2013 +0000
@@ -36,7 +36,7 @@
{
wait_ms(30);
i2c_ = new I2C(sda, scl);
- //3.4MHz, as specified by the datasheet. (DO NOT USE)
+ //3.4MHz, as specified by the datasheet, but DO NOT USE.
//i2c_->frequency(3400000);
command(RESET);
@@ -152,11 +152,11 @@
switch(point)
{
- case 1: return VIS;
- case 2: return IR;
- case 3: return PS1;
- case 4: return PS2;
- case 5: return PS3;
+ case 1: return PS1;
+ case 2: return PS2;
+ case 3: return PS3;
+ case 4: return VIS;
+ case 5: return IR;
default: return 0;
}
//data[0] = VIS;
