
Hello code for "Switch Science mbed LPC824"
Fork of SwitchSciencembedLPC824_test by
Revision 3:863cf79582a4, committed 2014-11-03
- Comitter:
- okano
- Date:
- Mon Nov 03 00:15:27 2014 +0000
- Parent:
- 2:482581f76a1d
- Child:
- 4:e79412c7b599
- Commit message:
- modification on constructor : taking an I2C object
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
test_LM75B.lib | Show annotated file Show diff for this revision Revisions of this file |
--- 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 );
--- a/test_LM75B.lib Mon Nov 03 00:11:02 2014 +0000 +++ b/test_LM75B.lib Mon Nov 03 00:15:27 2014 +0000 @@ -1,1 +1,1 @@ -test_LM75B#239684cd8ae9 +test_LM75B#bd3146b39577