src/FrontControlUnit/FrontControlUnit.cpp
void activateFrontLeftIndicator()
{ 
  digitalWrite(kFrontRightLED, LOW);
  if(millis() - prevFrontLeftMillis > kFrontBlinkInterval){
    prevFrontLeftMillis = millis();
    if(leftFrontState == 0){
      digitalWrite(kFrontLeftLED, HIGH);
      leftFrontState = 1;
    }
    else{
      digitalWrite(kFrontLeftLED, LOW);
      leftFrontState = 0;
    }
  }
  
}
//turning head lights on or off
turning head lights on or off
turning head lights on or off
void activateFrontLeftIndicator()
{ 
  digitalWrite(kFrontRightLED, LOW);
  if(millis() - prevFrontLeftMillis > kFrontBlinkInterval){
    prevFrontLeftMillis = millis();
    if(leftFrontState == 0){
      digitalWrite(kFrontLeftLED, HIGH);
      leftFrontState = 1;
    }
    else{
      digitalWrite(kFrontLeftLED, LOW);
      leftFrontState = 0;
    }
  }
}
void activateFrontLeftIndicator ( ) { digitalWrite ( kFrontRightLED , LOW ) ; if ( millis ( ) - prevFrontLeftMillis > kFrontBlinkInterval ) { prevFrontLeftMillis = millis ( ) ; if ( leftFrontState == 0 ) { digitalWrite ( kFrontLeftLED , HIGH ) ; leftFrontState = 1 ; } else { digitalWrite ( kFrontLeftLED , LOW ) ; leftFrontState = 0 ; } } }
turning head lights on or off
turning head lights on or off