JINXIN WEI
/
HelloWorld
led blink rate 0.5s
Revision 0:cef00c872d5b, committed 2018-01-18
- Comitter:
- jw17594
- Date:
- Thu Jan 18 14:03:01 2018 +0000
- Commit message:
- LED1 blink (rate:0.5s)
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 cef00c872d5b main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Jan 18 14:03:01 2018 +0000 @@ -0,0 +1,10 @@ +#include "mbed.h" +DigitalOut myled(LED1); +int main() { + while(1) { +myled = 1; +wait(0.5); +myled = 0; +wait(0.5); + } +} \ No newline at end of file
diff -r 000000000000 -r cef00c872d5b mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Jan 18 14:03:01 2018 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/7130f322cb7e \ No newline at end of file