si1145 library

Dependents:   FRDM_ApplicationShield_GroveSensors

Files at this revision

API Documentation at this revision

Comitter:
caseyquinn
Date:
Sun Jun 14 01:36:06 2015 +0000
Parent:
6:642ece0fad39
Child:
8:4511725f06b2
Commit message:
and another

Changed in this revision

SI1145.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/SI1145.cpp	Sun Jun 14 01:33:47 2015 +0000
+++ b/SI1145.cpp	Sun Jun 14 01:36:06 2015 +0000
@@ -192,7 +192,7 @@
     //float valf;                          // vis (IR+UV) value
     char reg[1];                         // register
     char data[2] = {0,0};                // data 2 x 8 bits
-    uint16_t vali;                       // vis value
+    int vali;                       // vis value
     // Set register    
     reg[0] = 0x22;
     // Read registers