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 32:ff6aa85f4253, committed 2019-11-08
- Comitter:
- isaacross99
- Date:
- Fri Nov 08 04:16:57 2019 +0000
- Parent:
- 31:6c36768769ea
- Commit message:
- 5623
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 6c36768769ea -r ff6aa85f4253 main.cpp --- a/main.cpp Thu Oct 31 04:24:05 2019 +0000 +++ b/main.cpp Fri Nov 08 04:16:57 2019 +0000 @@ -7,29 +7,29 @@ Timer crono; int main(){ - led0 = 1; - led1 = 1; - led2 = 1; - led3 = 1; + led0 = 0; + led1 = 0; + led2 = 0; + led3 = 0; crono.start(); - for(int i; i < 50; i++){ // Dado que la resolución es de 1.8 grados, se necesitan 200 pasos para completar un giro. + for(int i = 0; i < 50; i++){ // Dado que la resolución es de 1.8 grados, se necesitan 200 pasos para completar un giro. + led0 = 1; + led1 = 0; + led2 = 1; + led3 = 0; +wait(0.1); + led0 = 1; + led1 = 0; + led2 = 0; + led3 = 1; + wait(0.1); led0 = 0; led1 = 1; led2 = 0; led3 = 1; - wait(0.1); + wait(0.1); led0 = 0; led1 = 1; - led2 = 1; - led3 = 0; - wait(0.1); - led0 = 1; - led1 = 0; - led2 = 1; - led3 = 0; - wait(0.1); - led0 = 1; - led1 = 0; led2 = 0; led3 = 1; wait(0.1);