Hello code for "Switch Science mbed LPC824"

Dependencies:   mbed

Fork of SwitchSciencembedLPC824_test by Mako SHIMURA

Revision:
3:863cf79582a4
Parent:
2:482581f76a1d
Child:
6:b57b9dcfb515
--- a/main.cpp	Mon Nov 03 00:11:02 2014 +0000
+++ b/main.cpp	Mon Nov 03 00:15:27 2014 +0000
@@ -1,12 +1,15 @@
 #include "mbed.h"
 #include "test_LM75B.h"
 
-test_LM75B  temp( p28, p27 );
+I2C         i2c( p28, p27 );
+test_LM75B  temp( i2c );
 
 int main()
 {
     float   t;
 
+    i2c.frequency( 400 * 1000 );
+
     while(1) {
         t   = temp;
         printf( "temp = %7.3f\r\n", t );