diff options
| author | abel <71026016+ableTI@users.noreply.github.com> | 2024-04-08 16:07:30 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-08 16:07:30 +0200 |
| commit | 1f772df82135114ef3bbe4ef259fdd30d5981f7b (patch) | |
| tree | 90ba3f60182db3a99abf4dac61df772c36217373 | |
| parent | a5c7f35cd4c5871c9d8d06479a5928a4a4c3967a (diff) | |
| download | robotica-1f772df82135114ef3bbe4ef259fdd30d5981f7b.tar.gz robotica-1f772df82135114ef3bbe4ef259fdd30d5981f7b.zip | |
Update motordriver.ino
| -rw-r--r-- | motordriver/motordriver.ino | 8 |
1 files 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: "); |
