From 0f393368018d233060c43a5d27869ef2398747d8 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 26 Dec 2011 19:32:53 +1100 Subject: [PATCH] ACM: use LED_OFF/LED_ON instead of LOW/HIGH --- ArduCopter/leds.pde | 32 ++++++++++++++++---------------- ArduCopter/motors.pde | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/ArduCopter/leds.pde b/ArduCopter/leds.pde index 8f1d82de03..69a2d8a4c6 100644 --- a/ArduCopter/leds.pde +++ b/ArduCopter/leds.pde @@ -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 diff --git a/ArduCopter/motors.pde b/ArduCopter/motors.pde index 57e48ba29c..007c9dd316 100644 --- a/ArduCopter/motors.pde +++ b/ArduCopter/motors.pde @@ -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); }