Mirembe Jean d'Amour / Mbed 2 deprecated ASSIGNMENT_PART4

Dependencies:   mbed

Committer:
titig
Date:
Sun Nov 01 12:06:47 2020 +0000
Revision:
1:aa3ea7b4673e
Parent:
0:c7ce501d534b
Child:
2:a98660025857
Initialize the YELLOW light to ON

Who changed what in which revision?

UserRevisionLine numberNew contents of line
titig 0:c7ce501d534b 1 #include "mbed.h"
titig 1:aa3ea7b4673e 2 DigitalOut trafficYellowlight(p5); //Yellow light pin declaration
titig 1:aa3ea7b4673e 3 DigitalIn pedestrainButton(p8); //Switch button pin declaration
titig 0:c7ce501d534b 4 int main() {
titig 0:c7ce501d534b 5 while(1)
titig 0:c7ce501d534b 6 {
titig 0:c7ce501d534b 7
titig 1:aa3ea7b4673e 8 trafficYellowlight=1; //Initialize Yellow light to ON
titig 1:aa3ea7b4673e 9 wait_ms(500);
titig 0:c7ce501d534b 10 }
titig 0:c7ce501d534b 11 }