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
posicionamento.h
- Committer:
- fernandosakabe
- Date:
- 2022-05-03
- Revision:
- 8:80c72f7ee7da
- Child:
- 13:e1de9d8d635c
File content as of revision 8:80c72f7ee7da:
#include "mbed.h"
#include "movimento.h"
#include "mover.h"
void posicionamento ()
{
lcd.printf("Confirmar o posicionamento XY?")
while(button_enter == 0) {
x = xAxis.read() * 1000;
y = 1000 - yAxis.read() * 1000;
if(x > 600) {
x_mais()
}
if(x<400) {
x_menos ()
}
if (y>600) {
y_mais()
}
if (y>600) {
y_menos()
}
}
}
