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:
- 0:392dea3408f2
- Child:
- 1:18bf4c2c22ec
diff -r 000000000000 -r 392dea3408f2 main.cpp --- /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