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: posicionamento.h
- Revision:
- 8:80c72f7ee7da
- Child:
- 13:e1de9d8d635c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/posicionamento.h Tue May 03 15:01:31 2022 +0000
@@ -0,0 +1,31 @@
+#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()
+ }
+
+
+
+
+
+ }
+
+}
\ No newline at end of file
