![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
sdasda
Diff: main.cpp
- Revision:
- 0:5a66014727e3
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); + + } + +} + +}