program for final combination of working pieces

Dependencies:   SDFileSystem TMP102 mbed ISL29125

Fork of TEMP_Test by Thomas Dale

Revision:
11:cc9b7a7ce7cf
Parent:
10:478e0eb37b0d
Child:
12:7ed53be0057a
--- a/main.cpp	Wed Apr 06 05:19:34 2016 +0000
+++ b/main.cpp	Wed Apr 06 22:47:51 2016 +0000
@@ -31,7 +31,8 @@
     while (t.read()<60) {
         if (t.read()>(lastTime+interval))  {
           lastTime=t.read();
-          pc.printf("temp ouside = %.2f (c) \t inside = %.2f (c) \t on panel = %.2f (c) \t solar volage = %.2f (V) \t UV light =%.4f RGB Values:  red = %d \t green = %d\t blue = %d\r\n" ,get_outsideTemp(),get_insideTemp(),get_panelTemp(),get_solar(),get_UV(),rgb[0],rgb[1],rgb[2]);//prints titles and data of Temp readings
+          get_rgb(rgb);
+          pc.printf("temp ouside = %.2f (c)   inside = %.2f (c)   on panel = %.2f (c)   solar volage = %.2f (V)   UV light =%.4f   RGB Values: red = %d   green = %d   blue = %d\r\n" ,get_outsideTemp(),get_insideTemp(),get_panelTemp(),get_solar(),(get_UV()),rgb[0],rgb[1],rgb[2]);//prints titles and data of Temp readings
           writeData(lastTime,get_outsideTemp(),get_insideTemp(),get_panelTemp(),get_solar(),get_UV(),rgb[0],rgb[1],rgb[2]);//send data to writeData in SDsave.cpp
           
         }