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 2:481289ca3336, committed 2017-04-27
- Comitter:
- javierjsp
- Date:
- Thu Apr 27 16:50:04 2017 +0000
- Parent:
- 1:a21cb6098a25
- Child:
- 3:129c10cc04e2
- Commit message:
- cambiado variable pulsos a char
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Apr 11 19:58:47 2017 +0000 +++ b/main.cpp Thu Apr 27 16:50:04 2017 +0000 @@ -11,7 +11,7 @@ { motor1.period(0.00005); // establece el periodo del PWM, equivalente a una frecuencia de 20KHz. bt.baud(9600); // velocidad de transmision del bluetooth a 9600 baudios - int pulsos = 0; // numero de pulsos recorridos + char pulsos = 0; // numero de pulsos recorridos int recorrido = 240; // pulsos que queremos que recorra (modificaremos este valor hasta saber cuantos pulsos corresponden a una vuelta) bt.printf(pulsos); // envia el valor de "pulsos" por bluetooth