ibrahim mostafa
/
testLed
test
Revision 0:2612c38154a3, committed 2017-01-29
- Comitter:
- ibrahim_mostafa
- Date:
- Sun Jan 29 17:47:56 2017 +0000
- Commit message:
- first init
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 |
diff -r 000000000000 -r 2612c38154a3 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sun Jan 29 17:47:56 2017 +0000 @@ -0,0 +1,11 @@ +#include "mbed.h" + +DigitalOut led(LED1); + +int main() +{ + while (true) { + led = !led; // toggle led + wait(0.2f); + } +} \ No newline at end of file
diff -r 000000000000 -r 2612c38154a3 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sun Jan 29 17:47:56 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/ad3be0349dc5 \ No newline at end of file