ELCT-302 / Mbed 2 deprecated stepTest

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
jtho1327
Date:
Mon Feb 17 18:56:25 2020 +0000
Commit message:
test;

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 63938047af0f main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Feb 17 18:56:25 2020 +0000
@@ -0,0 +1,19 @@
+#include "mbed.h"
+#include <iostream>
+PwmOut servo(PTE20);
+DigitalOut control(PTB0);
+
+int main() 
+{ 
+    control=0;
+    servo.period(0.02);
+   while(1) 
+    {    
+    servo.pulsewidth(0.0012);
+    control=0;
+    wait(2);
+    servo.pulsewidth(0.0018);
+    control=1;
+    wait(2);
+    } 
+}
diff -r 000000000000 -r 63938047af0f mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Feb 17 18:56:25 2020 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file