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.
Dependencies: Adafruit_GFX
Diff: main.cpp
- Revision:
- 5:faf450e9aab0
- Parent:
- 4:7f4d81ed3984
--- a/main.cpp Thu Dec 16 15:01:29 2021 +0000
+++ b/main.cpp Thu Dec 16 15:56:48 2021 +0000
@@ -99,7 +99,7 @@
dirBMotor=1;
rele =1;
} else if (final2==1) {
- int tiempo=t.read();
+ // int tiempo=t.read();
//pc.printf("La temperatura es de %.4f\n",temperatura);
gOled.clearDisplay();
gOled.printf("La temperatura es de %.4f\n",temperatura);
@@ -121,8 +121,9 @@
enableMotor=0;
rele=0;
dirBMotor=1;//Esto hay que cambiarlo
+ bot.reset();
estado= estatico;
- bot.reset();
+
}
}
@@ -221,6 +222,7 @@
if(timerVel.read()>0.1) {
funcionVel(timerVel.read());
timerVel.reset();
+ pc.printf("a");
}
//distancia=usensor.get_dist_cm();
switch ( estado ) {