Projeto_Mecatronico_Team / Mbed 2 deprecated Projeto_Mecatronico

Dependencies:   mbed filesystem TextLCD

Fork of Projeto_Mecatronico by Fernando Sakabe

Revision:
8:80c72f7ee7da
Child:
13:e1de9d8d635c
diff -r 7a2a3a90555b -r 80c72f7ee7da posicionamento.h
--- /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