Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 0:f9c8e84340f6, committed 2020-11-26
- 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