program for final combination of working pieces
Dependencies: SDFileSystem TMP102 mbed ISL29125
Fork of TEMP_Test by
TEMPSensor.cpp
- Committer:
- tdale19
- Date:
- 2016-04-18
- Revision:
- 13:906a647d7bd1
- Parent:
- 8:28f8162d2929
File content as of revision 13:906a647d7bd1:
#include "mbed.h" #include "TMP102.h" // The location of the sensor on the FRDM-K64F// AnalogIn thermometerInside(PTB3); AnalogIn thermometerOutside(PTB10); float get_outsideTemp()//function to return temperature readings from outside thermometers not in contact with the panels { float readOne = thermometerOutside.read(); float outsideTemp = (readOne); //average of two outside thermometer return ( outsideTemp * 100 ); //conversion to celcius } float get_insideTemp()//function to return data from inside thermometer { float insideTemp = thermometerInside.read(); // onboard in-pod thermometer return ( insideTemp * 100 ) ; //conversion to celcius }