MosfetMotr

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
jlee3588
Date:
Tue Mar 03 01:05:48 2020 +0000
Commit message:
a

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 Mar 03 01:05:48 2020 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+
+PwmOut control(p21);
+float p = 0;
+
+int main() {
+    control = 0.0f;
+    while(1) {
+        int i;
+        p=0;
+        for(i=0; i<10; i++){
+            p += 0.1f;
+            control = p;
+            wait(2);
+        }
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Mar 03 01:05:48 2020 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file