Skip to content

Commit

Permalink
Update CAR_IR_BUTTON_UPDATE2.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
faresherif authored Nov 3, 2023
1 parent eb06328 commit bdd4232
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CAR_IR_BUTTON_UPDATE2.ino
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ void TURN_LEFT_FAST() {
analogWrite(FRONT_L, PWM_LOW);
}
int CAR_STATE(int IR_READ[], int f) {
f=0;
if (IR_READ[0] == 1 && IR_READ[1] == 1 && IR_READ[2] == 0 && IR_READ[3] == 1 && IR_READ[4] == 1) {
FORWARD();
} else if (IR_READ[0] == 1 && IR_READ[1] == 1 && IR_READ[2] == 1 && IR_READ[3] == 0 && IR_READ[4] == 1) {
Expand Down

0 comments on commit bdd4232

Please sign in to comment.