Felix HARERIMANA / Mbed 2 deprecated STEP2

Dependencies:   mbed

Revision:
3:b1c994da96f5
Parent:
2:602c96685466
Child:
4:21c7f1725060
--- a/main.cpp	Sun Nov 01 13:11:26 2020 +0000
+++ b/main.cpp	Sun Nov 01 13:16:01 2020 +0000
@@ -1,3 +1,5 @@
+#include "mbed.h"
+DigitalOut trafficYellowlight(p7);
 #include "mbed.h"
 DigitalOut trafficYellowlight(p7);
 DigitalIn pedestrainButton(p8);
@@ -12,7 +14,7 @@
             while(counter<10){
                 counter+=1;
                 trafficYellowlight=!trafficYellowlight;
-                wait_ms(5000);//delay of 5 seconds
+                wait_ms(5000);//delay of 5 second
             }
             trafficYellowlight=0;//switch off
              }