Carter John
/
Blink_led
A simple blink LED
Revision 0:a967891e504c, committed 2017-07-12
- Comitter:
- ElectronicsSanta
- Date:
- Wed Jul 12 11:07:06 2017 +0000
- Commit message:
- first commit
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 a967891e504c main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Jul 12 11:07:06 2017 +0000 @@ -0,0 +1,12 @@ +#include "mbed.h" + +DigitalOut myled(PC_13); + +int main() { + while(1) { + myled = 1; // LED is ON + wait(0.2); // 200 ms + myled = 0; // LED is OFF + wait(0.5); // 0.5 sec + } +} \ No newline at end of file
diff -r 000000000000 -r a967891e504c mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Jul 12 11:07:06 2017 +0000 @@ -0,0 +1,1 @@ +https://mbed.org/users/mbed_official/code/mbed/builds/22da6e220af6 \ No newline at end of file