dd
Dependencies: BufferedSerial FastAnalogIn FastPWM mbed SHT75
Diff: peltiert.h
- Revision:
- 0:9bfc4aea91e2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/peltiert.h Fri Feb 19 07:07:26 2016 +0000 @@ -0,0 +1,25 @@ +/* + * peltiert.h + * + * Created on: 2016. 2. 19. + * Author: sbh9428 + */ + +#ifndef PELTIERT_H_ +#define PELTIERT_H_ + +#include "FastPWM.h" + +class peltier_t { +public: + void set_PWM(float duty_ratio); + + peltier_t(); + peltier_t(FastPWM* _peltier_pin, DigitalOut* _direction_pin); + virtual ~peltier_t(); +private: + FastPWM* peltier_pin; + DigitalOut* direction_pin; +}; + +#endif /* PELTIERT_H_ */