Browse Source

Keep filament runout pin for Creality Melzi (#18504)

InsanityAutomation 4 years ago
parent
commit
e401b0c8ee
No account linked to committer's email address
1 changed files with 7 additions and 1 deletions
  1. 7
    1
      Marlin/src/pins/sanguino/pins_MELZI_CREALITY.h

+ 7
- 1
Marlin/src/pins/sanguino/pins_MELZI_CREALITY.h View File

61
 #undef LCD_PINS_D5
61
 #undef LCD_PINS_D5
62
 #undef LCD_PINS_D6
62
 #undef LCD_PINS_D6
63
 #undef LCD_PINS_D7
63
 #undef LCD_PINS_D7
64
-#undef FIL_RUNOUT_PIN                             // Uses Beeper/LED Pin Pulled to GND
65
 
64
 
66
 #define LCD_SDSS                             31   // Smart Controller SD card reader (rather than the Melzi)
65
 #define LCD_SDSS                             31   // Smart Controller SD card reader (rather than the Melzi)
67
 #define LCD_PINS_RS                          28   // ST9720 CS
66
 #define LCD_PINS_RS                          28   // ST9720 CS
71
 #if ENABLED(BLTOUCH)
70
 #if ENABLED(BLTOUCH)
72
   #define SERVO0_PIN                         27
71
   #define SERVO0_PIN                         27
73
   #undef BEEPER_PIN
72
   #undef BEEPER_PIN
73
+#elif ENABLED(FILAMENT_RUNOUT_SENSOR)
74
+  #ifndef FIL_RUNOUT_PIN
75
+    #define FIL_RUNOUT_PIN                   27
76
+  #endif
77
+  #if FIL_RUNOUT_PIN == BEEPER_PIN
78
+    #undef BEEPER_PIN
79
+  #endif
74
 #endif
80
 #endif
75
 
81
 
76
 #if ENABLED(MINIPANEL)
82
 #if ENABLED(MINIPANEL)

Loading…
Cancel
Save