![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
program for final combination of working pieces
Dependencies: SDFileSystem TMP102 mbed ISL29125
Fork of TEMP_Test by
Diff: main.cpp
- Revision:
- 8:28f8162d2929
- Parent:
- 7:6becc29457ce
- Child:
- 9:9690da23e8d7
--- a/main.cpp Thu Mar 31 17:32:01 2016 +0000 +++ b/main.cpp Thu Mar 31 17:53:11 2016 +0000 @@ -4,6 +4,7 @@ #include "SDFileSystem.h" #include "SDSave.h" #include "SolarPanel.h" +#include "UVSensor.h" Timer t; DigitalOut ledBlue(LED_BLUE); @@ -27,9 +28,9 @@ 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) \n\r" ,get_outsideTemp(),get_insideTemp(),get_panelTemp(),get_solar());//prints titles and data of Temp readings - writeData(lastTime,get_outsideTemp(),get_insideTemp(),get_panelTemp(),get_solar());//send data to writeData in SDsave.cpp - //we will get all rgb readings through an array, with the corresponding integers going in order red, green, blue + pc.printf("temp ouside = %.2f (c) \t inside = %.2f (c) \t on panel = %.2f (c) \t solar volage = %.2f (V) \t UV light =%.2f \n\r" ,get_outsideTemp(),get_insideTemp(),get_panelTemp(),get_solar(),get_UV());//prints titles and data of Temp readings + writeData(lastTime,get_outsideTemp(),get_insideTemp(),get_panelTemp(),get_solar(),get_UV());//send data to writeData in SDsave.cpp + } } closeDataFile();