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
main.cpp
- Committer:
- ricardoparanhos
- Date:
- 2022-05-03
- Revision:
- 9:8c0df3a229b8
- Parent:
- 6:bb07d23b4a84
- Child:
- 14:8948b797f249
File content as of revision 9:8c0df3a229b8:
#include "mbed.h"
/*#include "home.cpp"*/
/*#include "fim_de_curso.h"*/
#include "JOG.h"
int main(){
int posicoes_x[2] = {512, 1024};
int posicoes_y[2] = {1024, 512};
int posicoes_z[2] = {1024, 512};
while(1){
/*display_to_lcd("Bem vindo /n");
display_to_lcd("Prosseguir");
if(arrow_right == 1){
display_to_lcd("Setar nova posição /n");
display_to_lcd("Utilizar a última posição");
if(arrow_up == 1) {
home();
referenciamento();
adquirir_posições();
}
if(arrow_down == 1 {
last_update()
}
}*/
int x_anterior = 0;
int y_anterior = 0;
int z_anterior = 0;
for (int i; i <= sizeof(posicoes_x); i++)
{
int x_posicao = posicoes_x[i];
int y_posicao = posicoes_y[i];
int z_posicao = posicoes_z[i];
jog (x_posicao, y_posicao, z_posicao, x_anterior, y_anterior, z_anterior);
x_anterior = x_posicao;
y_anterior = y_posicao;
z_anterior = z_posicao;
}
}
}
