si1145 library
Dependents: FRDM_ApplicationShield_GroveSensors
Revision 5:2260652f0296, committed 2015-06-14
- Comitter:
- caseyquinn
- Date:
- Sun Jun 14 01:25:38 2015 +0000
- Parent:
- 4:27844262d40f
- Child:
- 6:642ece0fad39
- Commit message:
- adjusted the uv output
Changed in this revision
SI1145.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/SI1145.cpp Sat Jun 13 16:22:17 2015 +0000 +++ b/SI1145.cpp Sun Jun 14 01:25:38 2015 +0000 @@ -200,7 +200,8 @@ i2c.read(address, data, 2); // Merge bytes vali = data[0] | (data[1] << 8); // int - valf = (float)vali/100; // convert to float + valf = (float)vali; + valf = valf/100; // convert to float // Return value return valf; }