From 9436b73651d1f0b2c6884c5e4468d8225b6bfd93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=93=CE=B9=CF=8E=CF=81=CE=B3=CE=BF=CF=82=20=CE=91=CE=BD?= =?UTF-8?q?=CF=84=CF=81=CE=AD=CE=BF=CF=85?= Date: Sat, 1 Jul 2023 00:03:56 +0300 Subject: [PATCH] Change high and low values --- pid-example/pid-example.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pid-example/pid-example.ino b/pid-example/pid-example.ino index c87bbc9..dc36980 100644 --- a/pid-example/pid-example.ino +++ b/pid-example/pid-example.ino @@ -86,8 +86,8 @@ void loop() { } void forward_brake(int posa, int posb) { //set the appropriate values for aphase and bphase so that the robot goes straight - digitalWrite(aphase, LOW); - digitalWrite(bphase, HIGH); + digitalWrite(aphase, HIGH); + digitalWrite(bphase, LOW ); analogWrite(aenbl, posa); analogWrite(benbl, posb); }