juan carlos cortes parra / Mbed 2 deprecated tickers

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
juankafil1
Date:
Thu Nov 26 04:14:30 2020 +0000
Commit message:
pores

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 f9c8e84340f6 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Nov 26 04:14:30 2020 +0000
@@ -0,0 +1,26 @@
+#include "mbed.h"
+
+Ticker rampa; 
+
+BusOut step_secuence(PTA12,PTD4,PTA2,PTA2);//step_secuence=1010
+DigitalOut myled(LED1);
+int contador =0,second;
+float retardo,operacionrampa;
+void rampa1(){
+
+    contador=contador+1;
+    if (contador>=10){
+        contador=10;
+        }
+    }    
+int main() {
+   rampa.attach(&rampa1,second*0.1);
+   //ejemplo ,
+  // second
+   //rpm
+   //operacionrampa=60/rpm*numeropasos*10
+   
+   wait(operacionrampa*contador);
+   
+        
+}
diff -r 000000000000 -r f9c8e84340f6 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Nov 26 04:14:30 2020 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file