Manish Baluja / Mbed 2 deprecated temp

Dependencies:   mbed

main.cpp

Committer:
manishb
Date:
2019-07-23
Revision:
0:b22f610d83fd

File content as of revision 0:b22f610d83fd:

#include "mbed.h"
AnalogIn LM35(p15);

int main() {
    float value;
    while(1) {
                value = ((LM35.read()*3276)/10);            
                printf("Temp: %2.2f degree C\r\n", value);
        wait(1);
    }
}