Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of LM35 by
LM35.cpp
00001 #include "LM35.h" 00002 #include "mbed.h" 00003 00004 LM35::LM35(PinName pin) : _pin(pin) {} 00005 00006 float temperatura; 00007 00008 float LM35::mjerenje() 00009 { 00010 00011 Serial pc(USBTX, USBRX); 00012 temperatura = _pin.read(); 00013 temperatura = (temperatura)*500; 00014 00015 pc.printf("Temperatura je %f stupnjeva Celzijevih.\n \n \r", temperatura); //ispis temperature na računalo 00016 00017 return temperatura; 00018 00019 }
Generated on Wed Jul 13 2022 18:24:02 by
1.7.2
