Hello code for "Switch Science mbed LPC824"

Dependencies:   mbed

Fork of SwitchSciencembedLPC824_test by Mako SHIMURA

Committer:
okano
Date:
Mon Nov 03 00:06:59 2014 +0000
Revision:
1:3c29c04cfeb2
Parent:
0:f947ed831c67
Child:
2:482581f76a1d
device access is made as a class

Who changed what in which revision?

UserRevisionLine numberNew contents of line
okano 0:f947ed831c67 1 #include "mbed.h"
okano 1:3c29c04cfeb2 2 #include "test_LM75B.h"
okano 0:f947ed831c67 3
okano 1:3c29c04cfeb2 4 test_LM75B temp( p28, p27 );
okano 0:f947ed831c67 5
okano 0:f947ed831c67 6 int main()
okano 0:f947ed831c67 7 {
okano 0:f947ed831c67 8 while(1) {
okano 1:3c29c04cfeb2 9 printf( "temp = %7.3f\r\n", temp.read() );
okano 0:f947ed831c67 10 wait( 1 );
okano 0:f947ed831c67 11 }
okano 0:f947ed831c67 12 }
okano 0:f947ed831c67 13