dd
Dependencies: BufferedSerial FastAnalogIn FastPWM mbed SHT75
Diff: controlt.h
- Revision:
- 0:9bfc4aea91e2
- Child:
- 1:5c42ec7f1aeb
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/controlt.h Fri Feb 19 07:07:26 2016 +0000 @@ -0,0 +1,32 @@ +/* + * controlt.h + * + * Created on: 2016. 2. 19. + * Author: sbh9428 + */ + +#ifndef CONTROLT_H_ +#define CONTROLT_H_ + +#include "tempsensort.h" +#include "peltiert.h" + +class control_t { +public: + float get_temp(); + void control_PWM(float PWM); + void control_temp(); + void set_mode(int _mode); + + control_t(); + control_t(temp_sensor_t* _temp_sensor, peltier_t* _peltier); + virtual ~control_t(); +private: + temp_sensor_t* temp_sensor; + peltier_t* peltier; + + int mode;//0: stop 1: set pwm 2: set temp +}; + +#endif /* CONTROLT_H_ */ +