Felix HARERIMANA / Mbed 2 deprecated DISCO_F413ZH-trafficproject-SOUND

Dependencies:   mbed

Revision:
5:e1afaceb1196
Parent:
4:21c7f1725060
Child:
6:14626bbcb236
--- a/main.cpp	Sun Nov 01 13:26:46 2020 +0000
+++ b/main.cpp	Sun Nov 01 13:30:39 2020 +0000
@@ -17,13 +17,15 @@
                 wait_ms(5000);//delay of 5 second
             }
             trafficYellowlight=0;//switch off
-             
+             trafficRedlight=1; // set trafficReslight on
              }
              if(!trafficYellowlight){
-                 trafficYellowlight=!pedestrainButton; // yellow and red lights are switched opposetely
-                
+              trafficYellowlight=!pedestrainButton; // yellow and red lights are switched opposetely
+                 
              }
         
              wait_ms(5000); // wait for 5 second
                }
-}
\ No newline at end of file
+}
+
+