From 1f772df82135114ef3bbe4ef259fdd30d5981f7b Mon Sep 17 00:00:00 2001 From: abel <71026016+ableTI@users.noreply.github.com> Date: Mon, 8 Apr 2024 16:07:30 +0200 Subject: Update motordriver.ino --- motordriver/motordriver.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/motordriver/motordriver.ino b/motordriver/motordriver.ino index 17e6a22..35d6885 100644 --- a/motordriver/motordriver.ino +++ b/motordriver/motordriver.ino @@ -143,12 +143,12 @@ void Bmove(int sped) { void Cmove(int sped) { Serial.print("moving C "); if (sped < 0) { - digitalWrite(5, LOW); - digitalWrite(6, HIGH); + digitalWrite(in5, LOW); + digitalWrite(in6, HIGH); Serial.print("back"); } else { - digitalWrite(5, HIGH); - digitalWrite(6, LOW); + digitalWrite(in5, HIGH); + digitalWrite(in6, LOW); Serial.print("forward"); } Serial.print("with speed: "); -- cgit v1.2.3