ACM: use LED_OFF/LED_ON instead of LOW/HIGH

This commit is contained in:
Andrew Tridgell 2011-12-26 19:32:53 +11:00
parent f5a3eed1a7
commit 4fe527aefa
2 changed files with 17 additions and 17 deletions

View File

@ -102,28 +102,28 @@ static void update_motor_leds(void)
static bool blink = false;
if (blink){
digitalWrite(RE_LED, HIGH);
digitalWrite(FR_LED, HIGH);
digitalWrite(RI_LED, LOW);
digitalWrite(LE_LED, LOW);
digitalWrite(RE_LED, LED_ON);
digitalWrite(FR_LED, LED_ON);
digitalWrite(RI_LED, LED_OFF);
digitalWrite(LE_LED, LED_OFF);
}else{
digitalWrite(RE_LED, LOW);
digitalWrite(FR_LED, LOW);
digitalWrite(RI_LED, HIGH);
digitalWrite(LE_LED, HIGH);
digitalWrite(RE_LED, LED_OFF);
digitalWrite(FR_LED, LED_OFF);
digitalWrite(RI_LED, LED_ON);
digitalWrite(LE_LED, LED_ON);
}
blink = !blink;
}else{
digitalWrite(RE_LED, HIGH);
digitalWrite(FR_LED, HIGH);
digitalWrite(RI_LED, HIGH);
digitalWrite(LE_LED, HIGH);
digitalWrite(RE_LED, LED_ON);
digitalWrite(FR_LED, LED_ON);
digitalWrite(RI_LED, LED_ON);
digitalWrite(LE_LED, LED_ON);
}
}else {
digitalWrite(RE_LED, LOW);
digitalWrite(FR_LED, LOW);
digitalWrite(RI_LED, LOW);
digitalWrite(LE_LED, LOW);
digitalWrite(RE_LED, LED_OFF);
digitalWrite(FR_LED, LED_OFF);
digitalWrite(RI_LED, LED_OFF);
digitalWrite(LE_LED, LED_OFF);
}
}
#endif

View File

@ -102,7 +102,7 @@ static void init_arm_motors()
// temp hack
motor_light = true;
digitalWrite(A_LED_PIN, HIGH);
digitalWrite(A_LED_PIN, LED_ON);
}