Mirembe Jean d'Amour / Mbed 2 deprecated ASSIGNMENT_CODES

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
titig
Date:
Sun Nov 01 12:42:52 2020 +0000
Parent:
5:0225e0fdab62
Commit message:
If YELLOW LIGHT switch back to ON, then switch OFF the RED light

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sun Nov 01 12:35:03 2020 +0000
+++ b/main.cpp	Sun Nov 01 12:42:52 2020 +0000
@@ -20,6 +20,7 @@
              }
              if(!trafficYellowlight){
                  trafficYellowlight=!pedestrainButton;    // Yellow light reamin switched OFF but once button is pressed to be OFF Yellow light will be ON
+                 trafficRedlight=!trafficYellowlight;    // switching ON Red light once Yellow light is OFF
              }
         
              wait_ms(500);