NXP-Japan Demo-0
/
test_LM75B_Hello
pull request test
Fork of test_LM75B_Hello by
main.cpp
- Committer:
- okano
- Date:
- 2014-11-03
- Revision:
- 3:863cf79582a4
- Parent:
- 2:482581f76a1d
- Child:
- 6:b57b9dcfb515
File content as of revision 3:863cf79582a4:
#include "mbed.h" #include "test_LM75B.h" 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 ); wait( 1 ); } }