sdasda

Dependencies:   mbed

Files at this revision

API Documentation at this revision

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
--- /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);
+
+    }
+
+}
+   
+}
--- /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