cristian felipe carranza lopez / Mbed 2 deprecated calibraciomservo

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
cristian_1207
Date:
Tue Mar 13 22:05:23 2018 +0000
Commit message:
Programa Calibracion Servos

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 13 22:05:23 2018 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+PwmOut myservo1(PB_10);
+DigitalOut myled(LED1);
+int main() {
+    myservo1.period_ms(20);
+    int cw=1;
+    int dpulse=500;
+    myservo1.pulsewidth_us(dpulse);
+    while(1) {
+        myled = 1;
+        myservo1.pulsewidth_us(dpulse);
+        wait(1);}
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Mar 13 22:05:23 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/aa5281ff4a02
\ No newline at end of file