Page Web

Dependencies:   mbed Serveur_web_capteur EthernetNetIf

Revision:
6:df1059a12a34
Parent:
3:e851c29d398d
diff -r 976ba14cbadc -r df1059a12a34 HTTPServerExample.cpp
--- a/HTTPServerExample.cpp	Tue Jul 03 13:37:51 2018 +0000
+++ b/HTTPServerExample.cpp	Thu Feb 13 20:08:11 2020 +0000
@@ -7,7 +7,7 @@
 DigitalOut led3(LED3, "led3");
 DigitalOut led4(LED4, "led4");
 PwmOut venti(p21,"venti");
-AnalogIn pot(p18, "capteur_temp");
+AnalogIn pot(p19, "capteur_temp");
 
 
 LocalFileSystem fs("webfs");
@@ -51,7 +51,10 @@
     Net::poll();
     if(tm.read()>.5)
     {
-      led1=!led1
+      venti.write(0.1);
+      wait(0.5);
+      venti.write(0.5);
+      led1=!led1;
       tm.start();
       if(x>10){ led2=1;
       }else{