![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
sdasda
Revision 0:5a66014727e3, committed 2018-05-30
- Comitter:
- pratit911
- Date:
- Wed May 30 07:14:51 2018 +0000
- Commit message:
- pwm
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 5a66014727e3 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed May 30 07:14:51 2018 +0000 @@ -0,0 +1,22 @@ +#include "mbed.h" +//DigitalOut myled(LED1); +PwmOut PWM1(LED2); + +float i=0.0; +float j=0.0; +int main() { + while(1) + { + + for(i=0.0;i<=1;i+=0.1) + { + PWM1.period(0.1); + PWM1=i; + PWM1=i+0.2; + wait(0.1); + + } + +} + +}
diff -r 000000000000 -r 5a66014727e3 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed May 30 07:14:51 2018 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/5aab5a7997ee \ No newline at end of file