lu sheng
/
Nucleo103_i2c_master_LM75_OK
nucleo 103r LM75A
main.cpp
- Committer:
- anywill
- Date:
- 2017-11-20
- Revision:
- 0:b593e5481b36
File content as of revision 0:b593e5481b36:
//Nucleo F103RB+LM75A, //LM75A A0,A1,A2 connect to Gnd ,so the addr of this lm75a is 0x0000 //Os NC // #include "mbed.h" #include "LM75B.h" LM75B tmp(D14,D15);//D14,D15 =p28,p27 Serial pc(USBTX,USBRX); int main () { while (1) { pc.printf("%.2f\n",tmp.read()); wait(1.0); } }