pwm low speed led blinky
Dependencies: mbed
Revision 0:bfe784ab833e, committed 2018-07-12
- Comitter:
- kaushalpkk
- Date:
- Thu Jul 12 17:30:45 2018 +0000
- Commit message:
- 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 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Jul 12 17:30:45 2018 +0000 @@ -0,0 +1,19 @@ +#include "mbed.h" + +PwmOut led1(LED1); +DigitalOut led2(LED4); + +int count =0; + +int main(){ + printf("Hello world\n"); + led1.period(2); + led1 = 0.5; + while(1) { + led2 = 1; + wait(1); + led2 = 0; + wait(1); + + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Jul 12 17:30:45 2018 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/a7c7b631e539 \ No newline at end of file