Grelet Jacques
/
Ni-MH_V3
example code using statis library for temperature measurement with LM35 and LM335
Diff: main.cpp
- Revision:
- 4:ffc39af07ade
- Parent:
- 3:0e06300940cd
- Child:
- 5:0b3569945178
--- a/main.cpp Thu Nov 22 14:47:20 2012 +0000 +++ b/main.cpp Thu Nov 22 15:57:35 2012 +0000 @@ -1,5 +1,5 @@ #include "mbed.h" -#include "nimh.h" +#include "statis.h" #include "tickerEvent.h" #include "temperatureSensor.h" @@ -13,10 +13,10 @@ // temperature sensor intialisation // LM35 temperature sensor out is connected to Mbed pin : p19 -temperatureSensor LM35(p19, 0.1, 0, MEDIAN, 5); +temperatureSensor LM35(p19, 0.1, 0, STAT_MED_NORM, 5); // LM335 temperature sensor out is connected to Mbed pin : p20 -temperatureSensor LM335(p20, 0.1, 273.15, MEDIAN, 5); +temperatureSensor LM335(p20, 0.1, 273.15, STAT_MED_NORM, 5); // main program int main() {