Sakis Kasampalis
/
temperature-sensor
Show the temperature using TMP36
temperature.h
- Committer:
- faif
- Date:
- 2017-01-14
- Revision:
- 0:bf61ac6be2d7
File content as of revision 0:bf61ac6be2d7:
#ifndef TEMPERATURE_H #define TEMPERATURE_H Serial pc(USBTX, USBRX); AnalogIn temperatureIn(p20); void clear_screen(); float measure_voltage(int samples); float voltage_to_temperature(int voltage, int samples); #endif