Rob Toulson
/
RealTimeLab02_LEDBlinker
Real Time Lab Program
Revision 0:569757d5ecc1, committed 2015-01-25
- Comitter:
- robt
- Date:
- Sun Jan 25 16:25:50 2015 +0000
- Commit message:
- Real Time Lab Program;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sun Jan 25 16:25:50 2015 +0000 @@ -0,0 +1,25 @@ +#include "mbed.h" + +DigitalOut A(p21); +DigitalOut B(p22); +DigitalOut C(p23); +DigitalOut D(p24); +DigitalOut E(p25); + +int main() { + + while(1) { + A=1; + B=0; + C=1; + D=0; + E=0; + wait(0.5); + A=0; + B=1; + C=0; + D=1; + E=1; + wait(0.5); + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sun Jan 25 16:25:50 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/4fc01daae5a5 \ No newline at end of file