Browse Source

Rename status led pins

pull/1/head
Scott Lahteine 8 years ago
parent
commit
fba0b67f7d
  1. 14
      Marlin/Marlin_main.cpp
  2. 6
      Marlin/pins_A4JP.h
  3. 12
      Marlin/pins_AZTEEG_X3.h
  4. 4
      Marlin/pins_AZTEEG_X3_PRO.h
  5. 4
      Marlin/pins_CNCONTROLS_11.h
  6. 4
      Marlin/pins_CNCONTROLS_12.h
  7. 4
      Marlin/pins_MKS_13.h
  8. 4
      Marlin/pins_PRINTRBOARD.h
  9. 4
      Marlin/pins_PRINTRBOARD_REVF.h
  10. 4
      Marlin/pins_RAMBO.h
  11. 4
      Marlin/pins_RAMPS.h

14
Marlin/Marlin_main.cpp

@ -8719,8 +8719,8 @@ void prepare_move_to_destination() {
bool new_led = (max_temp > 55.0) ? true : (max_temp < 54.0) ? false : red_led;
if (new_led != red_led) {
red_led = new_led;
digitalWrite(STAT_LED_RED, new_led ? HIGH : LOW);
digitalWrite(STAT_LED_BLUE, new_led ? LOW : HIGH);
WRITE(STAT_LED_RED_PIN, new_led ? HIGH : LOW);
WRITE(STAT_LED_BLUE_PIN, new_led ? LOW : HIGH);
}
}
}
@ -9200,14 +9200,12 @@ void setup() {
setup_homepin();
#ifdef STAT_LED_RED
pinMode(STAT_LED_RED, OUTPUT);
digitalWrite(STAT_LED_RED, LOW); // turn it off
#if PIN_EXISTS(STAT_LED_RED)
OUT_WRITE(STAT_LED_RED_PIN, LOW); // turn it off
#endif
#ifdef STAT_LED_BLUE
pinMode(STAT_LED_BLUE, OUTPUT);
digitalWrite(STAT_LED_BLUE, LOW); // turn it off
#if PIN_EXISTS(STAT_LED_BLUE)
OUT_WRITE(STAT_LED_BLUE_PIN, LOW); // turn it off
#endif
lcd_init();

6
Marlin/pins_A4JP.h

@ -149,8 +149,6 @@
#define SD_DETECT_PIN -1 // Pin 72 if using easy adapter board
#if ENABLED(TEMP_STAT_LEDS)
#define STAT_LED_RED 22
#define STAT_LED_BLUE 32
#endif
#define STAT_LED_RED_PIN 22
#define STAT_LED_BLUE_PIN 32
#endif // VIKI2/miniVIKI

12
Marlin/pins_AZTEEG_X3.h

@ -42,15 +42,15 @@
#define BTN_ENC 12
#if ENABLED(TEMP_STAT_LEDS)
#undef STAT_LED_RED
#undef STAT_LED_BLUE
#define STAT_LED_RED 64
#define STAT_LED_BLUE 63
#undef STAT_LED_RED_PIN
#undef STAT_LED_BLUE_PIN
#define STAT_LED_RED_PIN 64
#define STAT_LED_BLUE_PIN 63
#endif
#elif ENABLED(TEMP_STAT_LEDS)
#define STAT_LED_RED 6
#define STAT_LED_BLUE 11
#define STAT_LED_RED_PIN 6
#define STAT_LED_BLUE_PIN 11
#endif

4
Marlin/pins_AZTEEG_X3_PRO.h

@ -117,6 +117,6 @@
#undef SD_DETECT_PIN
#define SD_DETECT_PIN 49 // For easy adapter board
#else
#define STAT_LED_RED 32
#define STAT_LED_BLUE 35
#define STAT_LED_RED_PIN 32
#define STAT_LED_BLUE_PIN 35
#endif

4
Marlin/pins_CNCONTROLS_11.h

@ -115,5 +115,5 @@
//
// Misc. Functions
//
#define STAT_LED_BLUE -1
#define STAT_LED_RED 31
#define STAT_LED_BLUE_PIN -1
#define STAT_LED_RED_PIN 31

4
Marlin/pins_CNCONTROLS_12.h

@ -111,8 +111,8 @@
//#define UI1 43
//#define UI2 37
#define STAT_LED_BLUE -1
#define STAT_LED_RED 10 // TOOL_0_PWM_PIN
#define STAT_LED_BLUE_PIN -1
#define STAT_LED_RED_PIN 10 // TOOL_0_PWM_PIN
//
// SD Card

4
Marlin/pins_MKS_13.h

@ -120,9 +120,9 @@
#define BEEPER_PIN 25
// yellow RED-LED
#define STAT_LED_RED 16
#define STAT_LED_RED_PIN 16
// white BLUE-LED
#define STAT_LED_BLUE 17
#define STAT_LED_BLUE_PIN 17
#endif

4
Marlin/pins_PRINTRBOARD.h

@ -132,7 +132,7 @@
#define SDSS 45
#define SD_DETECT_PIN -1 // FastIO (Manual says 72 I'm not certain cause I can't test)
#if ENABLED(TEMP_STAT_LEDS)
#define STAT_LED_RED 12 //Non-FastIO
#define STAT_LED_BLUE 10 //Non-FastIO
#define STAT_LED_RED_PIN 12 //Non-FastIO
#define STAT_LED_BLUE_PIN 10 //Non-FastIO
#endif
#endif

4
Marlin/pins_PRINTRBOARD_REVF.h

@ -131,7 +131,7 @@
#define SD_DETECT_PIN -1 // FastIO (Manual says 72 I'm not certain cause I can't test)
#if ENABLED(TEMP_STAT_LEDS)
#define STAT_LED_RED 12 //Non-FastIO
#define STAT_LED_BLUE 10 //Non-FastIO
#define STAT_LED_RED_PIN 12 //Non-FastIO
#define STAT_LED_BLUE_PIN 10 //Non-FastIO
#endif
#endif

4
Marlin/pins_RAMBO.h

@ -170,8 +170,8 @@
#define SD_DETECT_PIN -1 // Pin 72 if using easy adapter board
#if ENABLED(TEMP_STAT_LEDS)
#define STAT_LED_RED 22
#define STAT_LED_BLUE 32
#define STAT_LED_RED_PIN 22
#define STAT_LED_BLUE_PIN 32
#endif
#else

4
Marlin/pins_RAMPS.h

@ -281,8 +281,8 @@
#define KILL_PIN 31
#if ENABLED(TEMP_STAT_LEDS)
#define STAT_LED_RED 32
#define STAT_LED_BLUE 35
#define STAT_LED_RED_PIN 32
#define STAT_LED_BLUE_PIN 35
#endif
#elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
#define BTN_EN1 35 // reverse if the encoder turns the wrong way.

Loading…
Cancel
Save