Hello World program for LM75B temperature sensor

Dependencies:   LM75B mbed

Fork of app-board-LM75B by Chris Styles

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "LM75B.h"
00003 
00004 LM75B tmp(p28,p27);
00005 
00006 int main ()
00007 {
00008     while (1) {
00009         printf("%.2f\n",tmp.read());
00010         wait(1.0);
00011     }
00012 }