Change high and low values
This commit is contained in:
parent
6163744cc9
commit
9436b73651
|
@ -86,8 +86,8 @@ void loop() {
|
||||||
}
|
}
|
||||||
void forward_brake(int posa, int posb) {
|
void forward_brake(int posa, int posb) {
|
||||||
//set the appropriate values for aphase and bphase so that the robot goes straight
|
//set the appropriate values for aphase and bphase so that the robot goes straight
|
||||||
digitalWrite(aphase, LOW);
|
digitalWrite(aphase, HIGH);
|
||||||
digitalWrite(bphase, HIGH);
|
digitalWrite(bphase, LOW );
|
||||||
analogWrite(aenbl, posa);
|
analogWrite(aenbl, posa);
|
||||||
analogWrite(benbl, posb);
|
analogWrite(benbl, posb);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue