LinkNode_TemperatureAdvertising
Dependencies: LinkNod_TemperatureAdvertising
Dependents: LinkNode_Temperatur LinkNode_TemperatureAdvertising_22
Fork of Sensors by
Revision 6:836584114fd6, committed 2016-04-13
- Comitter:
- helloqi
- Date:
- Wed Apr 13 13:19:34 2016 +0000
- Parent:
- 5:912a1f021b8d
- Commit message:
- LinkNode_TemperatureAdvertising
Changed in this revision
BMP180.lib | Show annotated file Show diff for this revision Revisions of this file |
Sensors.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 912a1f021b8d -r 836584114fd6 BMP180.lib --- a/BMP180.lib Wed Mar 02 05:45:57 2016 +0000 +++ b/BMP180.lib Wed Apr 13 13:19:34 2016 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/spiridion/code/BMP180/#5b3e84563dcb +https://developer.mbed.org/users/helloqi/code/LinkNod_TemperatureAdvertising/#5b3e84563dcb
diff -r 912a1f021b8d -r 836584114fd6 Sensors.cpp --- a/Sensors.cpp Wed Mar 02 05:45:57 2016 +0000 +++ b/Sensors.cpp Wed Apr 13 13:19:34 2016 +0000 @@ -1,7 +1,6 @@ #include "Sensors.h" I2C i2c(P0_17, P0_18); -Serial pc(P0_23,P0_25); Ticker ticker1; BMP180 bmp180(&i2c); @@ -25,9 +24,9 @@ data_1 = (uint8_t)(data/5.0); i = 0; data = 0; - printf("The average temperature = %d C\n",data_1); + //printf("The average temperature = %d C\n",data_1); } - printf("Temperature = %f C\n",temp); + // printf("Temperature = %f C\n",temp); } } }