Scientific task box V1
Dependents: Scientific_RTOS Scientific_RTOS
Diff: BOX.h
- Revision:
- 2:f8120bb54b69
- Parent:
- 0:01deb85101c9
- Child:
- 3:442e7d2ab496
diff -r fffbe8907aa1 -r f8120bb54b69 BOX.h --- a/BOX.h Mon May 13 13:56:45 2019 +0000 +++ b/BOX.h Mon Jun 10 12:49:50 2019 +0000 @@ -3,7 +3,7 @@ #include "mbed.h" #include "HX711.h" -#include "DS18B20.h" +#include "DS1820.h" @@ -15,9 +15,11 @@ int get_weight(); //return weight in g from hx711 int get_resistance();//return soil resistance void tare(unsigned char times=20); //sets tare on HX711 library + void initialize(); -//virtual ~BOX(); + +virtual ~BOX(); @@ -29,8 +31,9 @@ PinName _pincond; int _coefficent; float _tmp; -DS18B20 therm; // Dallas 1-wire +DS1820 ds1820; // Dallas 1-wire HX711 balance; +bool check; };