dd

Dependencies:   BufferedSerial FastAnalogIn FastPWM mbed SHT75

Revision:
1:5c42ec7f1aeb
Parent:
0:9bfc4aea91e2
Child:
2:4c51394fb35b
--- a/main.cpp	Fri Feb 19 07:07:26 2016 +0000
+++ b/main.cpp	Mon Feb 22 06:03:11 2016 +0000
@@ -11,15 +11,17 @@
 
 Ticker controltick;
 
-FastAnalogIn temp_sensor_pin(p20);
+AnalogIn temp_sensor_pin(p19);
 
 temp_sensor_t temp_sensor(&temp_sensor_pin);
 
 
 
-FastPWM PWM_pin(p21);
+FastPWM PWM_pin(p23);
 DigitalOut PWM_dir(p22);
 
+
+
 peltier_t peltier(&PWM_pin, &PWM_dir);
 
 
@@ -40,11 +42,12 @@
 void peltier_control();
 
 int main() {
+    
     pc.printf("temperature start \n");
     
-    controltick.attach(&peltier_control, 1);
+    controltick.attach(&peltier_control, 10);
     
-    
+    wait(10);
     
     while(1) 
     {
@@ -58,5 +61,5 @@
 
 void peltier_control()
 {
-       command.refreshPWM();
+      command.refreshPWM();
 }
\ No newline at end of file