
Apna pehla lab program jisme humne LED ko blink karaya tha, DigitalOut se
Dependencies: mbed
Apna pehla lab program jisme humne LED ko blink karaya tha, DigitalOut se
Revision 0:2ce49f03f6ea, committed 2016-06-28
- Comitter:
- akashlal
- Date:
- Tue Jun 28 08:16:24 2016 +0000
- Commit message:
- Blinking LED
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 Tue Jun 28 08:16:24 2016 +0000 @@ -0,0 +1,14 @@ +#include "mbed.h" + +DigitalOut led (PTB18); + + int main() +{ + while(1) + { + led=0; + wait(0.5); + led=1; + wait(0.5); + } +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Jun 28 08:16:24 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/6c34061e7c34 \ No newline at end of file