Forked so that I can make it take I2C as a parameter; on a bus with other I2C things.

Fork of Si1133 by Silicon Labs

Revision:
1:410f61a3900b
Parent:
0:667132a19341
Child:
2:1e2dd643afa8
--- a/Si1133.cpp	Sun Nov 12 15:58:26 2017 +0100
+++ b/Si1133.cpp	Sun Nov 12 16:42:03 2017 +0100
@@ -136,6 +136,14 @@
     return uvi;
 }
 
+bool Si1133::get_light_and_uv(float *light_level, float *uv_index)
+{
+    if(measureLuxUvi(light_level, uv_index)) {
+        return false;
+    }
+    return true;
+}
+
 /***************************************************************************//**
  * @brief
  *    Reads register from the Si1133 sensor