Felix HARERIMANA / Mbed 2 deprecated LORACODES

Dependencies:   mbed

main.cpp

Committer:
harerimana
Date:
2020-11-01
Revision:
1:18bf4c2c22ec
Parent:
0:392dea3408f2
Child:
2:602c96685466

File content as of revision 1:18bf4c2c22ec:

#include "mbed.h"
DigitalOut trafficYellowlight(p7);
DigitalIn pedestrainButton(p8);
int main() {
    while(1) 
    {
        
         trafficYellowlight=1;
        trafficYellowlight=!pedestrainButton;
             wait_ms(5000);
               }
         }