From dcc0a483b21c7d65f53e84863e68dd05668a873b Mon Sep 17 00:00:00 2001 From: Andrea Manni Date: Mon, 3 Apr 2017 14:30:27 +0200 Subject: [PATCH] Metodo Stop --- prototypes/motor/drive_obj/drive_obj.ino | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/prototypes/motor/drive_obj/drive_obj.ino b/prototypes/motor/drive_obj/drive_obj.ino index 50b9a19..a19c323 100644 --- a/prototypes/motor/drive_obj/drive_obj.ino +++ b/prototypes/motor/drive_obj/drive_obj.ino @@ -12,7 +12,6 @@ Guida 2WD composta da 2 motori #include void setup() { -// abilita(); } car macchina ; @@ -20,31 +19,28 @@ car macchina ; void loop() { //// Avanti macchina.avanti(); -// digitalWrite(in1,LOW); -// digitalWrite(in2,HIGH); -// digitalWrite(enA,HIGH); delay(2000); -//// Stop -// car.stop(); -// delay(1000); -// +// Stop + macchina.stop(); + delay(1000); + //// TurnSX -// car.giraSX(); +// macchina.giraSX(); // delay(1000); // //// Indietro -// car.indietro(); +// macchina.indietro(); // delay(2000); //// Stop -// car.stop(); +// macchina.stop(); // delay(1000); // //// TurnDX -// car.giraDX(); +// macchina.giraDX(); // delay(1000); // //// Stop -// car.stop(); +// macchina.stop(); // delay(1000); } -- 2.39.2