Temperature library for the full project.
Temp_Sensor.h
- Committer:
- ptcrews
- Date:
- 2015-12-05
- Revision:
- 0:a42f4353261f
- Child:
- 1:fc58ae197a88
File content as of revision 0:a42f4353261f:
#include "main.h" #define ADC_CONVERSION 3.3/5.0 #ifndef _TEMP_SENSOR #define _TEMP_SENSOR class Temp_Sensor { public: Temp_Sensor(): temperature(TMP_ANALOG){} float read(); private: AnalogIn temperature; }; #endif