My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Conditionals_LCD.h 15KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  4. *
  5. * Based on Sprinter and grbl.
  6. * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. /**
  23. * Conditionals_LCD.h
  24. * Conditionals that need to be set before Configuration_adv.h or pins.h
  25. */
  26. #ifndef CONDITIONALS_LCD_H // Get the LCD defines which are needed first
  27. #define CONDITIONALS_LCD_H
  28. #define LCD_HAS_DIRECTIONAL_BUTTONS (BUTTON_EXISTS(UP) || BUTTON_EXISTS(DWN) || BUTTON_EXISTS(LFT) || BUTTON_EXISTS(RT))
  29. #if ENABLED(CARTESIO_UI)
  30. #define DOGLCD
  31. #define ULTIPANEL
  32. #define DEFAULT_LCD_CONTRAST 90
  33. #define LCD_CONTRAST_MIN 60
  34. #define LCD_CONTRAST_MAX 140
  35. #elif ENABLED(MAKRPANEL)
  36. #define U8GLIB_ST7565_64128N
  37. #elif ENABLED(ZONESTAR_LCD)
  38. #define REPRAPWORLD_KEYPAD
  39. #define REPRAPWORLD_KEYPAD_MOVE_STEP 10.0
  40. #define ADC_KEYPAD
  41. #define ADC_KEY_NUM 8
  42. #define ULTIPANEL
  43. // this helps to implement ADC_KEYPAD menus
  44. #define ENCODER_PULSES_PER_STEP 1
  45. #define ENCODER_STEPS_PER_MENU_ITEM 1
  46. #define ENCODER_FEEDRATE_DEADZONE 2
  47. #define REVERSE_MENU_DIRECTION
  48. #elif ENABLED(RADDS_DISPLAY)
  49. #define ULTIPANEL
  50. #define ENCODER_PULSES_PER_STEP 2
  51. #elif ENABLED(ANET_FULL_GRAPHICS_LCD)
  52. #define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
  53. #elif ENABLED(BQ_LCD_SMART_CONTROLLER)
  54. #define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
  55. #elif ENABLED(miniVIKI) || ENABLED(VIKI2) || ENABLED(ELB_FULL_GRAPHIC_CONTROLLER) || ENABLED(AZSMZ_12864)
  56. #define ULTRA_LCD //general LCD support, also 16x2
  57. #define DOGLCD // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
  58. #define ULTIMAKERCONTROLLER //as available from the Ultimaker online store.
  59. #if ENABLED(miniVIKI)
  60. #define LCD_CONTRAST_MIN 75
  61. #define LCD_CONTRAST_MAX 115
  62. #define DEFAULT_LCD_CONTRAST 95
  63. #define U8GLIB_ST7565_64128N
  64. #elif ENABLED(VIKI2)
  65. #define LCD_CONTRAST_MIN 0
  66. #define LCD_CONTRAST_MAX 255
  67. #define DEFAULT_LCD_CONTRAST 140
  68. #define U8GLIB_ST7565_64128N
  69. #elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
  70. #define LCD_CONTRAST_MIN 90
  71. #define LCD_CONTRAST_MAX 130
  72. #define DEFAULT_LCD_CONTRAST 110
  73. #define U8GLIB_LM6059_AF
  74. #define SD_DETECT_INVERTED
  75. #elif ENABLED(AZSMZ_12864)
  76. #define LCD_CONTRAST_MIN 120
  77. #define LCD_CONTRAST_MAX 255
  78. #define DEFAULT_LCD_CONTRAST 190
  79. #define U8GLIB_ST7565_64128N
  80. #endif
  81. #elif ENABLED(OLED_PANEL_TINYBOY2)
  82. #define U8GLIB_SSD1306
  83. #define ULTIPANEL
  84. #define REVERSE_ENCODER_DIRECTION
  85. #define REVERSE_MENU_DIRECTION
  86. #elif ENABLED(RA_CONTROL_PANEL)
  87. #define LCD_I2C_TYPE_PCA8574
  88. #define LCD_I2C_ADDRESS 0x27 // I2C Address of the port expander
  89. #define ULTIPANEL
  90. #elif ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
  91. #define DOGLCD
  92. #define U8GLIB_ST7920
  93. #define ULTIPANEL
  94. #elif ENABLED(CR10_STOCKDISPLAY)
  95. #define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
  96. #ifndef ST7920_DELAY_1
  97. #define ST7920_DELAY_1 DELAY_NS(125)
  98. #endif
  99. #ifndef ST7920_DELAY_2
  100. #define ST7920_DELAY_2 DELAY_NS(125)
  101. #endif
  102. #ifndef ST7920_DELAY_3
  103. #define ST7920_DELAY_3 DELAY_NS(125)
  104. #endif
  105. #elif ENABLED(MKS_12864OLED)
  106. #define REPRAP_DISCOUNT_SMART_CONTROLLER
  107. #define U8GLIB_SH1106
  108. #elif ENABLED(MKS_12864OLED_SSD1306)
  109. #define REPRAP_DISCOUNT_SMART_CONTROLLER
  110. #define U8GLIB_SSD1306
  111. #elif ENABLED(MKS_MINI_12864)
  112. #define MINIPANEL
  113. #endif
  114. #if ENABLED(MAKRPANEL) || ENABLED(MINIPANEL)
  115. #define DOGLCD
  116. #define ULTIPANEL
  117. #define DEFAULT_LCD_CONTRAST 17
  118. #endif
  119. #if ENABLED(ULTI_CONTROLLER)
  120. #define U8GLIB_SSD1309
  121. #define REVERSE_ENCODER_DIRECTION
  122. #define LCD_RESET_PIN LCD_PINS_D6 // This controller need a reset pin
  123. #define LCD_CONTRAST_MIN 0
  124. #define LCD_CONTRAST_MAX 254
  125. #define DEFAULT_LCD_CONTRAST 127
  126. #define ENCODER_PULSES_PER_STEP 2
  127. #define ENCODER_STEPS_PER_MENU_ITEM 2
  128. #endif
  129. // Generic support for SSD1306 / SSD1309 / SH1106 OLED based LCDs.
  130. #if ENABLED(U8GLIB_SSD1306) || ENABLED(U8GLIB_SSD1309) || ENABLED(U8GLIB_SH1106)
  131. #define ULTRA_LCD //general LCD support, also 16x2
  132. #define DOGLCD // Support for I2C LCD 128x64 (Controller SSD1306 / SSD1309 / SH1106 graphic Display Family)
  133. #endif
  134. #if ENABLED(PANEL_ONE) || ENABLED(U8GLIB_SH1106)
  135. #define ULTIMAKERCONTROLLER
  136. #elif ENABLED(MAKEBOARD_MINI_2_LINE_DISPLAY_1602)
  137. #define REPRAP_DISCOUNT_SMART_CONTROLLER
  138. #define LCD_WIDTH 16
  139. #define LCD_HEIGHT 2
  140. #endif
  141. #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) || ENABLED(LCD_FOR_MELZI) || ENABLED(SILVER_GATE_GLCD_CONTROLLER)
  142. #define DOGLCD
  143. #define U8GLIB_ST7920
  144. #define REPRAP_DISCOUNT_SMART_CONTROLLER
  145. #endif
  146. #if ENABLED(ULTIMAKERCONTROLLER) \
  147. || ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER) \
  148. || ENABLED(G3D_PANEL) \
  149. || ENABLED(RIGIDBOT_PANEL) \
  150. || ENABLED(ULTI_CONTROLLER)
  151. #define ULTIPANEL
  152. #endif
  153. #if ENABLED(REPRAPWORLD_KEYPAD)
  154. #define NEWPANEL
  155. #if ENABLED(ULTIPANEL) && !defined(REPRAPWORLD_KEYPAD_MOVE_STEP)
  156. #define REPRAPWORLD_KEYPAD_MOVE_STEP 1.0
  157. #endif
  158. #endif
  159. /**
  160. * I2C PANELS
  161. */
  162. #if ENABLED(LCD_SAINSMART_I2C_1602) || ENABLED(LCD_SAINSMART_I2C_2004)
  163. #define LCD_I2C_TYPE_PCF8575
  164. #define LCD_I2C_ADDRESS 0x27 // I2C Address of the port expander
  165. #if ENABLED(LCD_SAINSMART_I2C_2004)
  166. #define LCD_WIDTH 20
  167. #define LCD_HEIGHT 4
  168. #endif
  169. #elif ENABLED(LCD_I2C_PANELOLU2)
  170. // PANELOLU2 LCD with status LEDs, separate encoder and click inputs
  171. #define LCD_I2C_TYPE_MCP23017
  172. #define LCD_I2C_ADDRESS 0x20 // I2C Address of the port expander
  173. #define LCD_USE_I2C_BUZZER // Enable buzzer on LCD (optional)
  174. #define ULTIPANEL
  175. #elif ENABLED(LCD_I2C_VIKI)
  176. /**
  177. * Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs
  178. *
  179. * This uses the LiquidTWI2 library v1.2.3 or later ( https://github.com/lincomatic/LiquidTWI2 )
  180. * Make sure the LiquidTWI2 directory is placed in the Arduino or Sketchbook libraries subdirectory.
  181. * Note: The pause/stop/resume LCD button pin should be connected to the Arduino
  182. * BTN_ENC pin (or set BTN_ENC to -1 if not used)
  183. */
  184. #define LCD_I2C_TYPE_MCP23017
  185. #define LCD_I2C_ADDRESS 0x20 // I2C Address of the port expander
  186. #define LCD_USE_I2C_BUZZER // Enable buzzer on LCD (requires LiquidTWI2 v1.2.3 or later)
  187. #define ULTIPANEL
  188. #define ENCODER_FEEDRATE_DEADZONE 4
  189. #define STD_ENCODER_PULSES_PER_STEP 1
  190. #define STD_ENCODER_STEPS_PER_MENU_ITEM 2
  191. #elif ENABLED(G3D_PANEL)
  192. #define STD_ENCODER_PULSES_PER_STEP 2
  193. #define STD_ENCODER_STEPS_PER_MENU_ITEM 1
  194. #elif ENABLED(miniVIKI) || ENABLED(VIKI2) \
  195. || ENABLED(ELB_FULL_GRAPHIC_CONTROLLER) \
  196. || ENABLED(AZSMZ_12864) \
  197. || ENABLED(OLED_PANEL_TINYBOY2) \
  198. || ENABLED(BQ_LCD_SMART_CONTROLLER) \
  199. || ENABLED(LCD_I2C_PANELOLU2) \
  200. || ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
  201. #define STD_ENCODER_PULSES_PER_STEP 4
  202. #define STD_ENCODER_STEPS_PER_MENU_ITEM 1
  203. #endif
  204. #ifndef STD_ENCODER_PULSES_PER_STEP
  205. #define STD_ENCODER_PULSES_PER_STEP 5
  206. #endif
  207. #ifndef STD_ENCODER_STEPS_PER_MENU_ITEM
  208. #define STD_ENCODER_STEPS_PER_MENU_ITEM 1
  209. #endif
  210. #ifndef ENCODER_PULSES_PER_STEP
  211. #define ENCODER_PULSES_PER_STEP STD_ENCODER_PULSES_PER_STEP
  212. #endif
  213. #ifndef ENCODER_STEPS_PER_MENU_ITEM
  214. #define ENCODER_STEPS_PER_MENU_ITEM STD_ENCODER_STEPS_PER_MENU_ITEM
  215. #endif
  216. #ifndef ENCODER_FEEDRATE_DEADZONE
  217. #define ENCODER_FEEDRATE_DEADZONE 6
  218. #endif
  219. // Shift register panels
  220. // ---------------------
  221. // 2 wire Non-latching LCD SR from:
  222. // https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection
  223. #if ENABLED(SAV_3DLCD)
  224. #define SR_LCD_2W_NL // Non latching 2 wire shift register
  225. #define ULTIPANEL
  226. #endif
  227. #if ENABLED(DOGLCD) // Change number of lines to match the DOG graphic display
  228. #ifndef LCD_WIDTH
  229. #ifdef LCD_WIDTH_OVERRIDE
  230. #define LCD_WIDTH LCD_WIDTH_OVERRIDE
  231. #else
  232. #define LCD_WIDTH 22
  233. #endif
  234. #endif
  235. #ifndef LCD_HEIGHT
  236. #define LCD_HEIGHT 5
  237. #endif
  238. #endif
  239. #if ENABLED(NO_LCD_MENUS)
  240. #undef ULTIPANEL
  241. #endif
  242. #if ENABLED(ULTIPANEL)
  243. #define NEWPANEL // Disable this if you actually have no click-encoder panel
  244. #define ULTRA_LCD
  245. #ifndef LCD_WIDTH
  246. #define LCD_WIDTH 20
  247. #endif
  248. #ifndef LCD_HEIGHT
  249. #define LCD_HEIGHT 4
  250. #endif
  251. #elif ENABLED(ULTRA_LCD) // no panel but just LCD
  252. #ifndef LCD_WIDTH
  253. #define LCD_WIDTH 16
  254. #endif
  255. #ifndef LCD_HEIGHT
  256. #define LCD_HEIGHT 2
  257. #endif
  258. #endif
  259. #if ENABLED(DOGLCD)
  260. /* Custom characters defined in font Marlin_symbols.fon which was merged to ISO10646-0-3.bdf */
  261. // \x00 intentionally skipped to avoid problems in strings
  262. #define LCD_STR_REFRESH "\x01"
  263. #define LCD_STR_FOLDER "\x02"
  264. #define LCD_STR_ARROW_RIGHT "\x03"
  265. #define LCD_STR_UPLEVEL "\x04"
  266. #define LCD_STR_CLOCK "\x05"
  267. #define LCD_STR_FEEDRATE "\x06"
  268. #define LCD_STR_BEDTEMP "\x07"
  269. #define LCD_STR_THERMOMETER "\x08"
  270. #define LCD_STR_DEGREE "\x09"
  271. #define LCD_STR_SPECIAL_MAX '\x09'
  272. // Maximum here is 0x1F because 0x20 is ' ' (space) and the normal charsets begin.
  273. // Better stay below 0x10 because DISPLAY_CHARSET_HD44780_WESTERN begins here.
  274. // Symbol characters
  275. #define LCD_STR_FILAM_DIA "\xf8"
  276. #define LCD_STR_FILAM_MUL "\xa4"
  277. #else
  278. // Custom characters defined in the first 8 characters of the LCD
  279. #define LCD_BEDTEMP_CHAR 0x00 // Print only as a char. This will have 'unexpected' results when used in a string!
  280. #define LCD_DEGREE_CHAR 0x01
  281. #define LCD_STR_THERMOMETER "\x02" // Still used with string concatenation
  282. #define LCD_UPLEVEL_CHAR 0x03
  283. #define LCD_STR_REFRESH "\x04"
  284. #define LCD_STR_FOLDER "\x05"
  285. #define LCD_FEEDRATE_CHAR 0x06
  286. #define LCD_CLOCK_CHAR 0x07
  287. #define LCD_STR_ARROW_RIGHT ">" /* from the default character set */
  288. #endif
  289. /**
  290. * Default LCD contrast for dogm-like LCD displays
  291. */
  292. #if ENABLED(DOGLCD)
  293. #define HAS_LCD_CONTRAST ( \
  294. ENABLED(MAKRPANEL) \
  295. || ENABLED(CARTESIO_UI) \
  296. || ENABLED(VIKI2) \
  297. || ENABLED(AZSMZ_12864) \
  298. || ENABLED(miniVIKI) \
  299. || ENABLED(ELB_FULL_GRAPHIC_CONTROLLER) \
  300. )
  301. #if HAS_LCD_CONTRAST
  302. #ifndef LCD_CONTRAST_MIN
  303. #define LCD_CONTRAST_MIN 0
  304. #endif
  305. #ifndef LCD_CONTRAST_MAX
  306. #define LCD_CONTRAST_MAX 63
  307. #endif
  308. #ifndef DEFAULT_LCD_CONTRAST
  309. #define DEFAULT_LCD_CONTRAST 32
  310. #endif
  311. #endif
  312. #endif
  313. // Boot screens
  314. #if DISABLED(ULTRA_LCD)
  315. #undef SHOW_BOOTSCREEN
  316. #elif !defined(BOOTSCREEN_TIMEOUT)
  317. #define BOOTSCREEN_TIMEOUT 2500
  318. #endif
  319. #define HAS_DEBUG_MENU (ENABLED(ULTIPANEL) && ENABLED(LCD_PROGRESS_BAR_TEST))
  320. // MK2 Multiplexer forces SINGLENOZZLE and kills DISABLE_INACTIVE_EXTRUDER
  321. #if ENABLED(MK2_MULTIPLEXER)
  322. #define SINGLENOZZLE
  323. #undef DISABLE_INACTIVE_EXTRUDER
  324. #endif
  325. /**
  326. * Extruders have some combination of stepper motors and hotends
  327. * so we separate these concepts into the defines:
  328. *
  329. * EXTRUDERS - Number of Selectable Tools
  330. * HOTENDS - Number of hotends, whether connected or separate
  331. * E_STEPPERS - Number of actual E stepper motors
  332. * E_MANUAL - Number of E steppers for LCD move options
  333. *
  334. */
  335. #define HOTEND_LOOP() for (int8_t e = 0; e < HOTENDS; e++)
  336. #if ENABLED(SWITCHING_EXTRUDER) // One stepper for every two EXTRUDERS
  337. #if EXTRUDERS > 4
  338. #define E_STEPPERS 3
  339. #elif EXTRUDERS > 2
  340. #define E_STEPPERS 2
  341. #else
  342. #define E_STEPPERS 1
  343. #endif
  344. #if DISABLED(SWITCHING_NOZZLE)
  345. #define HOTENDS E_STEPPERS
  346. #endif
  347. #define E_MANUAL EXTRUDERS
  348. #elif ENABLED(MIXING_EXTRUDER)
  349. #define E_STEPPERS MIXING_STEPPERS
  350. #define E_MANUAL 1
  351. #else
  352. #define E_STEPPERS EXTRUDERS
  353. #define E_MANUAL EXTRUDERS
  354. #endif
  355. #if ENABLED(SINGLENOZZLE) || ENABLED(MIXING_EXTRUDER) // One hotend, one thermistor, no XY offset
  356. #undef HOTENDS
  357. #define HOTENDS 1
  358. #undef TEMP_SENSOR_1_AS_REDUNDANT
  359. #undef HOTEND_OFFSET_X
  360. #undef HOTEND_OFFSET_Y
  361. #endif
  362. #ifndef HOTENDS
  363. #define HOTENDS EXTRUDERS
  364. #endif
  365. #define DO_SWITCH_EXTRUDER (ENABLED(SWITCHING_EXTRUDER) && (DISABLED(SWITCHING_NOZZLE) || SWITCHING_EXTRUDER_SERVO_NR != SWITCHING_NOZZLE_SERVO_NR))
  366. /**
  367. * DISTINCT_E_FACTORS affects how some E factors are accessed
  368. */
  369. #if ENABLED(DISTINCT_E_FACTORS) && E_STEPPERS > 1
  370. #define XYZE_N (XYZ + E_STEPPERS)
  371. #define E_AXIS_N (E_AXIS + extruder)
  372. #else
  373. #undef DISTINCT_E_FACTORS
  374. #define XYZE_N XYZE
  375. #define E_AXIS_N E_AXIS
  376. #endif
  377. /**
  378. * The BLTouch Probe emulates a servo probe
  379. * and uses "special" angles for its state.
  380. */
  381. #if ENABLED(BLTOUCH)
  382. #ifndef Z_PROBE_SERVO_NR
  383. #define Z_PROBE_SERVO_NR 0
  384. #endif
  385. #ifndef NUM_SERVOS
  386. #define NUM_SERVOS (Z_PROBE_SERVO_NR + 1)
  387. #endif
  388. #undef DEACTIVATE_SERVOS_AFTER_MOVE
  389. #if NUM_SERVOS == 1
  390. #undef SERVO_DELAY
  391. #define SERVO_DELAY { 50 }
  392. #endif
  393. #ifndef BLTOUCH_DELAY
  394. #define BLTOUCH_DELAY 375
  395. #endif
  396. #undef Z_SERVO_ANGLES
  397. #define Z_SERVO_ANGLES { BLTOUCH_DEPLOY, BLTOUCH_STOW }
  398. #define BLTOUCH_DEPLOY 10
  399. #define BLTOUCH_STOW 90
  400. #define BLTOUCH_SELFTEST 120
  401. #define BLTOUCH_RESET 160
  402. #define _TEST_BLTOUCH(P) (READ(P##_PIN) != P##_ENDSTOP_INVERTING)
  403. // Always disable probe pin inverting for BLTouch
  404. #undef Z_MIN_PROBE_ENDSTOP_INVERTING
  405. #define Z_MIN_PROBE_ENDSTOP_INVERTING false
  406. #if ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
  407. #undef Z_MIN_ENDSTOP_INVERTING
  408. #define Z_MIN_ENDSTOP_INVERTING Z_MIN_PROBE_ENDSTOP_INVERTING
  409. #define TEST_BLTOUCH() _TEST_BLTOUCH(Z_MIN)
  410. #else
  411. #define TEST_BLTOUCH() _TEST_BLTOUCH(Z_MIN_PROBE)
  412. #endif
  413. #endif
  414. /**
  415. * Set a flag for a servo probe
  416. */
  417. #define HAS_Z_SERVO_PROBE (defined(Z_PROBE_SERVO_NR) && Z_PROBE_SERVO_NR >= 0)
  418. /**
  419. * Set flags for enabled probes
  420. */
  421. #define HAS_BED_PROBE (ENABLED(FIX_MOUNTED_PROBE) || ENABLED(Z_PROBE_ALLEN_KEY) || HAS_Z_SERVO_PROBE || ENABLED(Z_PROBE_SLED) || ENABLED(SOLENOID_PROBE))
  422. #define PROBE_SELECTED (HAS_BED_PROBE || ENABLED(PROBE_MANUALLY))
  423. #if !HAS_BED_PROBE
  424. // Clear probe pin settings when no probe is selected
  425. #undef Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
  426. #undef Z_MIN_PROBE_ENDSTOP
  427. #elif ENABLED(Z_PROBE_ALLEN_KEY)
  428. // Extra test for Allen Key Probe
  429. #define PROBE_IS_TRIGGERED_WHEN_STOWED_TEST
  430. #endif
  431. #define HOMING_Z_WITH_PROBE (HAS_BED_PROBE && Z_HOME_DIR < 0 && ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN))
  432. #define HAS_SOFTWARE_ENDSTOPS (ENABLED(MIN_SOFTWARE_ENDSTOPS) || ENABLED(MAX_SOFTWARE_ENDSTOPS))
  433. #define HAS_RESUME_CONTINUE (ENABLED(NEWPANEL) || ENABLED(EMERGENCY_PARSER))
  434. #define HAS_COLOR_LEDS (ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED))
  435. #endif // CONDITIONALS_LCD_H