Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 1:18bf4c2c22ec
- Parent:
- 0:392dea3408f2
- Child:
- 2:602c96685466
--- a/main.cpp Sun Nov 01 13:01:46 2020 +0000
+++ b/main.cpp Sun Nov 01 13:08:01 2020 +0000
@@ -1,12 +1,13 @@
-##include "mbed.h"
-DigitalOut trafficYellowlight(p7);// declaration of Pin 7 as output
-DigitalIn pedestrainButton(p8); // declaration of Pin 8 as Input
+#include "mbed.h"
+DigitalOut trafficYellowlight(p7);
+DigitalIn pedestrainButton(p8);
int main() {
while(1)
{
- trafficYellowlight=0;
+ trafficYellowlight=1;
trafficYellowlight=!pedestrainButton;
wait_ms(5000);
}
- }
\ No newline at end of file
+ }
+