![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
dd
Dependencies: BufferedSerial FastAnalogIn FastPWM mbed SHT75
Diff: peltiert.cpp
- Revision:
- 10:c751a0e8b7f9
- Parent:
- 0:9bfc4aea91e2
--- a/peltiert.cpp Thu Mar 31 14:01:49 2016 +0000 +++ b/peltiert.cpp Mon Jul 11 01:05:52 2016 +0000 @@ -26,8 +26,8 @@ void peltier_t::set_PWM(float duty_ratio) { if(duty_ratio>0) - *direction_pin=1; + *direction_pin=0; else - *direction_pin=0; + *direction_pin=1; peltier_pin->pulsewidth_us(1000*abs(duty_ratio)); } \ No newline at end of file