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: mbed filesystem TextLCD
Fork of Projeto_Mecatronico by
Diff: fim_de_curso.h
- Revision:
- 17:2b5d8163b000
- Parent:
- 16:be88f7617529
- Child:
- 18:6631cd661227
--- a/fim_de_curso.h Wed May 04 17:00:42 2022 +0000
+++ b/fim_de_curso.h Thu May 05 00:49:11 2022 +0000
@@ -13,49 +13,45 @@
void fim_de_curso()
{
- // FDC_x1.mode(PullUp);
- // FDC_x2.mode(PullUp);
- // FDC_y1.mode(PullUp);
- // FDC_y2.mode(PullUp);
- // FDC_z1.mode(PullUp);
- // FDC_z2.mode(PullUp);
+// FDC_x1.mode(PullUp);
+// FDC_x2.mode(PullUp);
+// FDC_y1.mode(PullUp);
+// FDC_y2.mode(PullUp);
+// FDC_z1.mode(PullUp);
+// FDC_z2.mode(PullUp);
+ if (FDC_x1 == 0)
+ {
+ string estado = "x_menos" ;
+ jog_FDC(estado);
+ }
- while (1)
+ if (FDC_x2 == 0)
+ {
+ string estado = "x_mais";
+ jog_FDC(estado);
+ }
+
+ if (FDC_y1 == 0)
{
- if (FDC_x1 == 0)
- {
- string estado = "x_menos" ;
- jog_FDC(estado);
- }
-
- if (FDC_x2 == 0)
- {
- string estado = "x_mais";
- jog_FDC(estado);
- }
-
- if (FDC_y1 == 0)
- {
- string estado = "y_menos";
- jog_FDC(estado);
- }
-
- if (FDC_y2 == 0)
- {
- string estado = "y_mais";
- jog_FDC(estado);
- }
-
- if (FDC_z1 == 0)
- {
- string estado = "z_menos";
- jog_FDC(estado);
- }
-
- if (FDC_z2 == 0)
- {
- string estado = "z_mais"
- jog_FDC(estado);
- }
+ string estado = "y_menos";
+ jog_FDC(estado);
+ }
+
+ if (FDC_y2 == 0)
+ {
+ string estado = "y_mais";
+ jog_FDC(estado);
+ }
+
+ if (FDC_z1 == 0)
+ {
+ string estado = "z_menos";
+ jog_FDC(estado);
+ }
+
+ if (FDC_z2 == 0)
+ {
+ string estado = "z_mais"
+ jog_FDC(estado);
}
}
\ No newline at end of file
