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
fim_de_curso.h
- Committer:
- ricardoparanhos
- Date:
- 2022-06-19
- Revision:
- 36:6e46a3e4df6c
- Parent:
- 18:6631cd661227
File content as of revision 36:6e46a3e4df6c:
/*#include "mbed.h"
#include "JOG.h"
//Fim de cursos eixo x
DigitalIn FDC_x1(PC_10);
DigitalIn FDC_x2(PC_12);
//Fim de cursos eixo y
DigitalIn FDC_y1(PA_13);
DigitalIn FDC_y2(PA_14);
//Fim de cursos eixo z
DigitalIn FDC_z1(PB_7);
DigitalIn FDC_z2(PC_13);
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);
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);
}
} */
