Konstrukcijski zadatak V0

Dependencies:   mbed TextLCD

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers thermistor.cpp Source File

thermistor.cpp

00001 #include "thermistor.h"
00002 #include "mbed.h"
00003 Temperature::Temperature(PinName senzorPin) : senzor(senzorPin) {
00004     
00005 }
00006 
00007 float Temperature::get_temperature() {
00008     
00009     temp=senzor*200-50;
00010     wait(0.02);
00011 return temp;
00012 }