1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-30 07:17:59 +00:00

Rename status led pins

This commit is contained in:
Scott Lahteine 2016-09-24 15:33:29 -05:00
parent 9d86c07702
commit fba0b67f7d
11 changed files with 30 additions and 34 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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