Mirembe Jean d'Amour / Mbed 2 deprecated ASSIGNMENT_CODES

Dependencies:   mbed

Revision:
1:aa3ea7b4673e
Parent:
0:c7ce501d534b
Child:
2:a98660025857
--- a/main.cpp	Sun Nov 01 11:31:10 2020 +0000
+++ b/main.cpp	Sun Nov 01 12:06:47 2020 +0000
@@ -1,13 +1,11 @@
 #include "mbed.h"
-DigitalOut trafficYellowlight(p5); //Yellow light pin declaration 
-DigitalIn pedestrainButton(p8); //Switch button pin declaration 
+DigitalOut trafficYellowlight(p5);   //Yellow light pin declaration 
+DigitalIn pedestrainButton(p8);    //Switch button pin declaration 
 int main() {
     while(1) 
     {
         
-         trafficYellowlight=0; //Initialize Yellow light to ON
-        trafficYellowlight=!pedestrainButton; // Switching OFF when Button is Pressed
-             wait_ms(500);
+         trafficYellowlight=1; //Initialize Yellow light to ON
+         wait_ms(500);
                }
          }
- 
\ No newline at end of file