dd

Dependencies:   BufferedSerial FastAnalogIn FastPWM mbed SHT75

controlt.h

Committer:
sbh9428
Date:
2016-02-19
Revision:
0:9bfc4aea91e2
Child:
1:5c42ec7f1aeb

File content as of revision 0:9bfc4aea91e2:

/*
 * 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_ */