Hello World program for LM75B temperature sensor

Dependencies:   LM75B mbed

Fork of app-board-LM75B by Chris Styles

Committer:
chris
Date:
Fri Oct 26 21:57:09 2012 +0000
Revision:
4:02cf3a06a13e
Parent:
3:4d612f16ad84
First commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
okano 0:ce7a8546502b 1 #include "mbed.h"
chris 2:9e757151de9b 2 #include "LM75B.h"
okano 0:ce7a8546502b 3
chris 2:9e757151de9b 4 LM75B tmp(p28,p27);
okano 0:ce7a8546502b 5
chris 2:9e757151de9b 6 int main ()
okano 0:ce7a8546502b 7 {
chris 2:9e757151de9b 8 while (1) {
chris 4:02cf3a06a13e 9 printf("%.2f\n",tmp.read());
chris 2:9e757151de9b 10 wait(1.0);
chris 2:9e757151de9b 11 }
okano 0:ce7a8546502b 12 }