Mirembe Jean d'Amour / Mbed 2 deprecated ASSIGNMENT_PART1

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 DigitalOut trafficYellowlight(p5);   //Yellow light pin declaration 
00003 DigitalIn pedestrainButton(p8);    //Switch button pin declaration 
00004 int main() {
00005     while(1) 
00006     {
00007         
00008          trafficYellowlight=1; //Initialize Yellow light to ON
00009          wait_ms(500);
00010                }
00011          }