robot-car/mazes/LineFollowing.cpp
void forward(){
  analogWrite(ENA, ABS);      // PWM (pulse-width modulated) enable lines
  analogWrite(ENB, ABS);      // makes it go less than full speed (by a factor of ABS/127)
  digitalWrite(IN1, HIGH);
  digitalWrite(IN2, LOW);
  digitalWrite(IN3, LOW);
  digitalWrite(IN4, HIGH);
  Serial.println("go forward!");
}
// in practice a value of 64 barely moves the car
in practice a value of 64 barely moves the car
in practice a value of 64 barely moves the car
void forward(){
  analogWrite(ENA, ABS);      
  analogWrite(ENB, ABS);      
  digitalWrite(IN1, HIGH);
  digitalWrite(IN2, LOW);
  digitalWrite(IN3, LOW);
  digitalWrite(IN4, HIGH);
  Serial.println("go forward!");
}
void forward ( ) { analogWrite ( ENA , ABS ) ; analogWrite ( ENB , ABS ) ; digitalWrite ( IN1 , HIGH ) ; digitalWrite ( IN2 , LOW ) ; digitalWrite ( IN3 , LOW ) ; digitalWrite ( IN4 , HIGH ) ; Serial . println ( " " ) ; }
in practice a value of 64 barely moves the car
in practice a value of 64 barely moves the car
// PWM (pulse-width modulated) enable lines // makes it go less than full speed (by a factor of ABS/127)