Felix HARERIMANA / Mbed 2 deprecated LORACODES

Dependencies:   mbed

Revision:
0:392dea3408f2
Child:
1:18bf4c2c22ec
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Nov 01 13:01:46 2020 +0000
@@ -0,0 +1,12 @@
+##include "mbed.h"
+DigitalOut trafficYellowlight(p7);// declaration of Pin 7 as output 
+DigitalIn pedestrainButton(p8);  // declaration of Pin 8 as Input  
+int main() {
+    while(1) 
+    {
+        
+         trafficYellowlight=0;
+        trafficYellowlight=!pedestrainButton;
+             wait_ms(5000);
+               }
+         }
\ No newline at end of file