This commit is contained in:
parent
3af540ad27
commit
3d69adb2e2
|
@ -19,10 +19,10 @@ endif
|
|||
|
||||
DDEFS += -DEFI_MAIN_RELAY_CONTROL=TRUE
|
||||
|
||||
# todo: invert 4th LED
|
||||
DDEFS += -DLED_ERROR_BRAIN_PIN_MODE=INVERTED_OUTPUT
|
||||
DDEFS += -DLED_RUNING_BRAIN_PIN_MODE=INVERTED_OUTPUT
|
||||
DDEFS += -DLED_WARNING_BRAIN_PIN_MODE=INVERTED_OUTPUT
|
||||
DDEFS += -DLED_COMMUNICATION_BRAIN_PIN_MODE=INVERTED_OUTPUT
|
||||
|
||||
# Add them all together
|
||||
DDEFS += -DEFI_USE_OSC=TRUE -DFIRMWARE_ID=\"hellen72\" $(DEFAULT_ENGINE_TYPE) $(LED_CRITICAL_ERROR_BRAIN_PIN) $(LED_COMMUNICATION_BRAIN_PIN)
|
||||
|
|
|
@ -111,6 +111,9 @@ extern pin_output_mode_e INVERTED_OUTPUT;
|
|||
#ifndef LED_RUNING_BRAIN_PIN_MODE
|
||||
#define LED_RUNING_BRAIN_PIN_MODE DEFAULT_OUTPUT
|
||||
#endif
|
||||
#ifndef LED_COMMUNICATION_BRAIN_PIN_MODE
|
||||
#define LED_COMMUNICATION_BRAIN_PIN_MODE DEFAULT_OUTPUT
|
||||
#endif
|
||||
|
||||
int warningEnabled = true;
|
||||
|
||||
|
@ -328,7 +331,7 @@ static OutputPin *leds[] = { &enginePins.warningLedPin, &enginePins.runningLedPi
|
|||
&enginePins.errorLedPin, &enginePins.communicationLedPin, &enginePins.checkEnginePin };
|
||||
|
||||
static void initStatusLeds(void) {
|
||||
enginePins.communicationLedPin.initPin("led: comm status", engineConfiguration->communicationLedPin);
|
||||
enginePins.communicationLedPin.initPin("led: comm status", engineConfiguration->communicationLedPin, &LED_COMMUNICATION_BRAIN_PIN_MODE);
|
||||
// checkEnginePin is already initialized by the time we get here
|
||||
|
||||
enginePins.warningLedPin.initPin("led: warning status", engineConfiguration->warningLedPin, &LED_WARNING_BRAIN_PIN_MODE);
|
||||
|
|
Loading…
Reference in New Issue