My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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. #pragma once
  23. /**
  24. * Conditionals_LCD.h
  25. * Conditionals that need to be set before Configuration_adv.h or pins.h
  26. */
  27. #if ENABLED(CARTESIO_UI)
  28. #define DOGLCD
  29. #define ULTIPANEL
  30. #define DEFAULT_LCD_CONTRAST 90
  31. #define LCD_CONTRAST_MIN 60
  32. #define LCD_CONTRAST_MAX 140
  33. #elif ENABLED(MAKRPANEL)
  34. #define U8GLIB_ST7565_64128N
  35. #elif ENABLED(ZONESTAR_LCD)
  36. #define ADC_KEYPAD
  37. #define REPRAPWORLD_KEYPAD
  38. #define REPRAPWORLD_KEYPAD_MOVE_STEP 10.0
  39. #define ADC_KEY_NUM 8
  40. #define ULTIPANEL
  41. // this helps to implement ADC_KEYPAD menus
  42. #define REVERSE_MENU_DIRECTION
  43. #define ENCODER_PULSES_PER_STEP 1
  44. #define ENCODER_STEPS_PER_MENU_ITEM 1
  45. #define ENCODER_FEEDRATE_DEADZONE 2
  46. #elif ENABLED(RADDS_DISPLAY)
  47. #define ULTIPANEL
  48. #define ENCODER_PULSES_PER_STEP 2
  49. #elif ENABLED(ANET_FULL_GRAPHICS_LCD)
  50. #define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
  51. #elif ENABLED(BQ_LCD_SMART_CONTROLLER)
  52. #define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
  53. #elif ENABLED(miniVIKI) || ENABLED(VIKI2) || ENABLED(ELB_FULL_GRAPHIC_CONTROLLER) || ENABLED(AZSMZ_12864)
  54. #define ULTRA_LCD //general LCD support, also 16x2
  55. #define DOGLCD // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
  56. #define ULTIMAKERCONTROLLER //as available from the Ultimaker online store.
  57. #if ENABLED(miniVIKI)
  58. #define LCD_CONTRAST_MIN 75
  59. #define LCD_CONTRAST_MAX 115
  60. #define DEFAULT_LCD_CONTRAST 95
  61. #define U8GLIB_ST7565_64128N
  62. #elif ENABLED(VIKI2)
  63. #define LCD_CONTRAST_MIN 0
  64. #define LCD_CONTRAST_MAX 255
  65. #define DEFAULT_LCD_CONTRAST 140
  66. #define U8GLIB_ST7565_64128N
  67. #elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
  68. #define LCD_CONTRAST_MIN 90
  69. #define LCD_CONTRAST_MAX 130
  70. #define DEFAULT_LCD_CONTRAST 110
  71. #define U8GLIB_LM6059_AF
  72. #define SD_DETECT_INVERTED
  73. #elif ENABLED(AZSMZ_12864)
  74. #define LCD_CONTRAST_MIN 120
  75. #define LCD_CONTRAST_MAX 255
  76. #define DEFAULT_LCD_CONTRAST 190
  77. #define U8GLIB_ST7565_64128N
  78. #endif
  79. #elif ENABLED(OLED_PANEL_TINYBOY2)
  80. #define U8GLIB_SSD1306
  81. #define ULTIPANEL
  82. #define REVERSE_ENCODER_DIRECTION
  83. #define REVERSE_MENU_DIRECTION
  84. #elif ENABLED(RA_CONTROL_PANEL)
  85. #define LCD_I2C_TYPE_PCA8574
  86. #define LCD_I2C_ADDRESS 0x27 // I2C Address of the port expander
  87. #define ULTIPANEL
  88. #elif ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
  89. #define DOGLCD
  90. #define U8GLIB_ST7920
  91. #define ULTIPANEL
  92. #elif ENABLED(CR10_STOCKDISPLAY)
  93. #define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
  94. #ifndef ST7920_DELAY_1
  95. #define ST7920_DELAY_1 DELAY_NS(125)
  96. #endif
  97. #ifndef ST7920_DELAY_2
  98. #define ST7920_DELAY_2 DELAY_NS(125)
  99. #endif
  100. #ifndef ST7920_DELAY_3
  101. #define ST7920_DELAY_3 DELAY_NS(125)
  102. #endif
  103. #elif ENABLED(MKS_12864OLED)
  104. #define REPRAP_DISCOUNT_SMART_CONTROLLER
  105. #define U8GLIB_SH1106
  106. #elif ENABLED(MKS_12864OLED_SSD1306)
  107. #define REPRAP_DISCOUNT_SMART_CONTROLLER
  108. #define U8GLIB_SSD1306
  109. #elif ENABLED(MKS_MINI_12864)
  110. #define MINIPANEL
  111. #endif
  112. #if ENABLED(MAKRPANEL) || ENABLED(MINIPANEL)
  113. #define DOGLCD
  114. #define ULTIPANEL
  115. #define DEFAULT_LCD_CONTRAST 17
  116. #endif
  117. #if ENABLED(ULTI_CONTROLLER)
  118. #define U8GLIB_SSD1309
  119. #define REVERSE_ENCODER_DIRECTION
  120. #define LCD_RESET_PIN LCD_PINS_D6 // This controller need a reset pin
  121. #define LCD_CONTRAST_MIN 0
  122. #define LCD_CONTRAST_MAX 254
  123. #define DEFAULT_LCD_CONTRAST 127
  124. #define ENCODER_PULSES_PER_STEP 2
  125. #define ENCODER_STEPS_PER_MENU_ITEM 2
  126. #endif
  127. // Generic support for SSD1306 / SSD1309 / SH1106 OLED based LCDs.
  128. #if ENABLED(U8GLIB_SSD1306) || ENABLED(U8GLIB_SSD1309) || ENABLED(U8GLIB_SH1106)
  129. #define ULTRA_LCD //general LCD support, also 16x2
  130. #define DOGLCD // Support for I2C LCD 128x64 (Controller SSD1306 / SSD1309 / SH1106 graphic Display Family)
  131. #endif
  132. #if ENABLED(PANEL_ONE) || ENABLED(U8GLIB_SH1106)
  133. #define ULTIMAKERCONTROLLER
  134. #elif ENABLED(MAKEBOARD_MINI_2_LINE_DISPLAY_1602)
  135. #define REPRAP_DISCOUNT_SMART_CONTROLLER
  136. #define LCD_WIDTH 16
  137. #define LCD_HEIGHT 2
  138. #endif
  139. #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) || ENABLED(LCD_FOR_MELZI) || ENABLED(SILVER_GATE_GLCD_CONTROLLER)
  140. #define DOGLCD
  141. #define U8GLIB_ST7920
  142. #define REPRAP_DISCOUNT_SMART_CONTROLLER
  143. #endif
  144. #if ENABLED(ULTIMAKERCONTROLLER) \
  145. || ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER) \
  146. || ENABLED(G3D_PANEL) \
  147. || ENABLED(RIGIDBOT_PANEL) \
  148. || ENABLED(ULTI_CONTROLLER)
  149. #define ULTIPANEL
  150. #endif
  151. #if ENABLED(REPRAPWORLD_KEYPAD)
  152. #define NEWPANEL
  153. #if ENABLED(ULTIPANEL) && !defined(REPRAPWORLD_KEYPAD_MOVE_STEP)
  154. #define REPRAPWORLD_KEYPAD_MOVE_STEP 1.0
  155. #endif
  156. #endif
  157. /**
  158. * SPI PANELS
  159. */
  160. // Einstart OLED has Cardinal nav via pins defined in pins_EINSTART-S.h
  161. #if ENABLED(U8GLIB_SH1106_EINSTART)
  162. #define ULTRA_LCD
  163. #define DOGLCD
  164. #define ULTIPANEL
  165. #define NEWPANEL
  166. #endif
  167. /**
  168. * FSMC/SPI TFT PANELS
  169. */
  170. #if ENABLED(MKS_ROBIN_TFT)
  171. #define ULTRA_LCD
  172. #define DOGLCD
  173. #define ULTIPANEL
  174. #endif
  175. /**
  176. * I2C PANELS
  177. */
  178. #if ENABLED(LCD_SAINSMART_I2C_1602) || ENABLED(LCD_SAINSMART_I2C_2004)
  179. #define LCD_I2C_TYPE_PCF8575
  180. #define LCD_I2C_ADDRESS 0x27 // I2C Address of the port expander
  181. #if ENABLED(LCD_SAINSMART_I2C_2004)
  182. #define LCD_WIDTH 20
  183. #define LCD_HEIGHT 4
  184. #endif
  185. #elif ENABLED(LCD_I2C_PANELOLU2)
  186. // PANELOLU2 LCD with status LEDs, separate encoder and click inputs
  187. #define LCD_I2C_TYPE_MCP23017
  188. #define LCD_I2C_ADDRESS 0x20 // I2C Address of the port expander
  189. #define LCD_USE_I2C_BUZZER // Enable buzzer on LCD (optional)
  190. #define ULTIPANEL
  191. #elif ENABLED(LCD_I2C_VIKI)
  192. /**
  193. * Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs
  194. *
  195. * This uses the LiquidTWI2 library v1.2.3 or later ( https://github.com/lincomatic/LiquidTWI2 )
  196. * Make sure the LiquidTWI2 directory is placed in the Arduino or Sketchbook libraries subdirectory.
  197. * Note: The pause/stop/resume LCD button pin should be connected to the Arduino
  198. * BTN_ENC pin (or set BTN_ENC to -1 if not used)
  199. */
  200. #define LCD_I2C_TYPE_MCP23017
  201. #define LCD_I2C_ADDRESS 0x20 // I2C Address of the port expander
  202. #define LCD_USE_I2C_BUZZER // Enable buzzer on LCD (requires LiquidTWI2 v1.2.3 or later)
  203. #define ULTIPANEL
  204. #define ENCODER_FEEDRATE_DEADZONE 4
  205. #define STD_ENCODER_PULSES_PER_STEP 1
  206. #define STD_ENCODER_STEPS_PER_MENU_ITEM 2
  207. #elif ENABLED(G3D_PANEL)
  208. #define STD_ENCODER_PULSES_PER_STEP 2
  209. #define STD_ENCODER_STEPS_PER_MENU_ITEM 1
  210. #elif ENABLED(miniVIKI) || ENABLED(VIKI2) \
  211. || ENABLED(ELB_FULL_GRAPHIC_CONTROLLER) \
  212. || ENABLED(AZSMZ_12864) \
  213. || ENABLED(OLED_PANEL_TINYBOY2) \
  214. || ENABLED(BQ_LCD_SMART_CONTROLLER) \
  215. || ENABLED(LCD_I2C_PANELOLU2) \
  216. || ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
  217. #define STD_ENCODER_PULSES_PER_STEP 4
  218. #define STD_ENCODER_STEPS_PER_MENU_ITEM 1
  219. #endif
  220. #ifndef STD_ENCODER_PULSES_PER_STEP
  221. #define STD_ENCODER_PULSES_PER_STEP 5
  222. #endif
  223. #ifndef STD_ENCODER_STEPS_PER_MENU_ITEM
  224. #define STD_ENCODER_STEPS_PER_MENU_ITEM 1
  225. #endif
  226. #ifndef ENCODER_PULSES_PER_STEP
  227. #define ENCODER_PULSES_PER_STEP STD_ENCODER_PULSES_PER_STEP
  228. #endif
  229. #ifndef ENCODER_STEPS_PER_MENU_ITEM
  230. #define ENCODER_STEPS_PER_MENU_ITEM STD_ENCODER_STEPS_PER_MENU_ITEM
  231. #endif
  232. #ifndef ENCODER_FEEDRATE_DEADZONE
  233. #define ENCODER_FEEDRATE_DEADZONE 6
  234. #endif
  235. // Shift register panels
  236. // ---------------------
  237. // 2 wire Non-latching LCD SR from:
  238. // https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection
  239. #if ENABLED(SAV_3DLCD)
  240. #define SR_LCD_2W_NL // Non latching 2 wire shift register
  241. #define ULTIPANEL
  242. #endif
  243. #if ENABLED(ULTIPANEL)
  244. #define NEWPANEL // Disable this if you actually have no click-encoder panel
  245. #define ULTRA_LCD
  246. #endif
  247. // Aliases for LCD features
  248. #define HAS_SPI_LCD ENABLED(ULTRA_LCD)
  249. #define HAS_GRAPHICAL_LCD ENABLED(DOGLCD)
  250. #define HAS_CHARACTER_LCD (HAS_SPI_LCD && !HAS_GRAPHICAL_LCD)
  251. #define HAS_LCD_MENU (ENABLED(ULTIPANEL) && DISABLED(NO_LCD_MENUS))
  252. #define HAS_ADC_BUTTONS ENABLED(ADC_KEYPAD)
  253. #define HAS_DIGITAL_BUTTONS (!HAS_ADC_BUTTONS && ENABLED(NEWPANEL))
  254. #define HAS_SHIFT_ENCODER (!HAS_ADC_BUTTONS && (ENABLED(REPRAPWORLD_KEYPAD) || (HAS_SPI_LCD && DISABLED(NEWPANEL))))
  255. #define HAS_ENCODER_WHEEL (!HAS_ADC_BUTTONS && ENABLED(NEWPANEL))
  256. // I2C buttons must be read in the main thread
  257. #define HAS_SLOW_BUTTONS (ENABLED(LCD_I2C_VIKI) || ENABLED(LCD_I2C_PANELOLU2))
  258. #if HAS_GRAPHICAL_LCD
  259. /**
  260. * Default LCD contrast for Graphical LCD displays
  261. */
  262. #define HAS_LCD_CONTRAST ( \
  263. ENABLED(MAKRPANEL) \
  264. || ENABLED(CARTESIO_UI) \
  265. || ENABLED(VIKI2) \
  266. || ENABLED(AZSMZ_12864) \
  267. || ENABLED(miniVIKI) \
  268. || ENABLED(ELB_FULL_GRAPHIC_CONTROLLER) \
  269. )
  270. #if HAS_LCD_CONTRAST
  271. #ifndef LCD_CONTRAST_MIN
  272. #define LCD_CONTRAST_MIN 0
  273. #endif
  274. #ifndef LCD_CONTRAST_MAX
  275. #define LCD_CONTRAST_MAX 63
  276. #endif
  277. #ifndef DEFAULT_LCD_CONTRAST
  278. #define DEFAULT_LCD_CONTRAST 32
  279. #endif
  280. #endif
  281. #endif
  282. // Boot screens
  283. #if !HAS_SPI_LCD
  284. #undef SHOW_BOOTSCREEN
  285. #elif !defined(BOOTSCREEN_TIMEOUT)
  286. #define BOOTSCREEN_TIMEOUT 2500
  287. #endif
  288. /**
  289. * Extruders have some combination of stepper motors and hotends
  290. * so we separate these concepts into the defines:
  291. *
  292. * EXTRUDERS - Number of Selectable Tools
  293. * HOTENDS - Number of hotends, whether connected or separate
  294. * E_STEPPERS - Number of actual E stepper motors
  295. * E_MANUAL - Number of E steppers for LCD move options
  296. *
  297. */
  298. #if ENABLED(SWITCHING_EXTRUDER) // One stepper for every two EXTRUDERS
  299. #if EXTRUDERS > 4
  300. #define E_STEPPERS 3
  301. #elif EXTRUDERS > 2
  302. #define E_STEPPERS 2
  303. #else
  304. #define E_STEPPERS 1
  305. #endif
  306. #if DISABLED(SWITCHING_NOZZLE)
  307. #define HOTENDS E_STEPPERS
  308. #endif
  309. #elif ENABLED(MIXING_EXTRUDER)
  310. #define E_STEPPERS MIXING_STEPPERS
  311. #define E_MANUAL 1
  312. #elif ENABLED(SWITCHING_TOOLHEAD)
  313. #define E_STEPPERS EXTRUDERS
  314. #define E_MANUAL EXTRUDERS
  315. #endif
  316. // No inactive extruders with MK2_MULTIPLEXER or SWITCHING_NOZZLE
  317. #if ENABLED(MK2_MULTIPLEXER) || ENABLED(SWITCHING_NOZZLE)
  318. #undef DISABLE_INACTIVE_EXTRUDER
  319. #endif
  320. // MK2 Multiplexer forces SINGLENOZZLE
  321. #if ENABLED(MK2_MULTIPLEXER)
  322. #define SINGLENOZZLE
  323. #endif
  324. #if ENABLED(SINGLENOZZLE) || ENABLED(MIXING_EXTRUDER) // One hotend, one thermistor, no XY offset
  325. #undef HOTENDS
  326. #define HOTENDS 1
  327. #undef TEMP_SENSOR_1_AS_REDUNDANT
  328. #undef HOTEND_OFFSET_X
  329. #undef HOTEND_OFFSET_Y
  330. #endif
  331. #ifndef HOTENDS
  332. #define HOTENDS EXTRUDERS
  333. #endif
  334. #ifndef E_STEPPERS
  335. #define E_STEPPERS EXTRUDERS
  336. #endif
  337. #ifndef E_MANUAL
  338. #define E_MANUAL EXTRUDERS
  339. #endif
  340. #define HOTEND_LOOP() for (int8_t e = 0; e < HOTENDS; e++)
  341. #define DO_SWITCH_EXTRUDER (ENABLED(SWITCHING_EXTRUDER) && (DISABLED(SWITCHING_NOZZLE) || SWITCHING_EXTRUDER_SERVO_NR != SWITCHING_NOZZLE_SERVO_NR))
  342. #define HAS_HOTEND_OFFSET (HOTENDS > 1)
  343. /**
  344. * DISTINCT_E_FACTORS affects how some E factors are accessed
  345. */
  346. #if ENABLED(DISTINCT_E_FACTORS) && E_STEPPERS > 1
  347. #define XYZE_N (XYZ + E_STEPPERS)
  348. #define E_AXIS_N(E) (uint8_t(E_AXIS) + E)
  349. #else
  350. #undef DISTINCT_E_FACTORS
  351. #define XYZE_N XYZE
  352. #define E_AXIS_N(E) uint8_t(E_AXIS)
  353. #endif
  354. /**
  355. * The BLTouch Probe emulates a servo probe
  356. * and uses "special" angles for its state.
  357. */
  358. #if ENABLED(BLTOUCH)
  359. #ifndef Z_PROBE_SERVO_NR
  360. #define Z_PROBE_SERVO_NR 0
  361. #endif
  362. #ifndef NUM_SERVOS
  363. #define NUM_SERVOS (Z_PROBE_SERVO_NR + 1)
  364. #endif
  365. #undef DEACTIVATE_SERVOS_AFTER_MOVE
  366. #if NUM_SERVOS == 1
  367. #undef SERVO_DELAY
  368. #define SERVO_DELAY { 50 }
  369. #endif
  370. #ifndef BLTOUCH_DELAY
  371. #define BLTOUCH_DELAY 375
  372. #endif
  373. #undef Z_SERVO_ANGLES
  374. #define Z_SERVO_ANGLES { BLTOUCH_DEPLOY, BLTOUCH_STOW }
  375. #define BLTOUCH_DEPLOY 10
  376. #define BLTOUCH_STOW 90
  377. #define BLTOUCH_SELFTEST 120
  378. #define BLTOUCH_RESET 160
  379. #define _TEST_BLTOUCH(P) (READ(P##_PIN) != P##_ENDSTOP_INVERTING)
  380. // Always disable probe pin inverting for BLTouch
  381. #undef Z_MIN_PROBE_ENDSTOP_INVERTING
  382. #define Z_MIN_PROBE_ENDSTOP_INVERTING false
  383. #if ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
  384. #undef Z_MIN_ENDSTOP_INVERTING
  385. #define Z_MIN_ENDSTOP_INVERTING Z_MIN_PROBE_ENDSTOP_INVERTING
  386. #define TEST_BLTOUCH() _TEST_BLTOUCH(Z_MIN)
  387. #else
  388. #define TEST_BLTOUCH() _TEST_BLTOUCH(Z_MIN_PROBE)
  389. #endif
  390. #endif
  391. #ifndef PREHEAT_1_LABEL
  392. #define PREHEAT_1_LABEL "PLA"
  393. #endif
  394. #ifndef PREHEAT_2_LABEL
  395. #define PREHEAT_2_LABEL "ABS"
  396. #endif
  397. /**
  398. * Set a flag for a servo probe
  399. */
  400. #define HAS_Z_SERVO_PROBE (defined(Z_PROBE_SERVO_NR) && Z_PROBE_SERVO_NR >= 0)
  401. /**
  402. * Set flags for enabled probes
  403. */
  404. #define HAS_BED_PROBE (ENABLED(FIX_MOUNTED_PROBE) || ENABLED(Z_PROBE_ALLEN_KEY) || HAS_Z_SERVO_PROBE || ENABLED(Z_PROBE_SLED) || ENABLED(SOLENOID_PROBE) || ENABLED(SENSORLESS_PROBING) || ENABLED(RACK_AND_PINION_PROBE))
  405. #define PROBE_SELECTED (HAS_BED_PROBE || ENABLED(PROBE_MANUALLY) || ENABLED(MESH_BED_LEVELING))
  406. #if HAS_BED_PROBE
  407. #ifndef Z_PROBE_LOW_POINT
  408. #define Z_PROBE_LOW_POINT -5
  409. #endif
  410. #if ENABLED(Z_PROBE_ALLEN_KEY)
  411. #define PROBE_TRIGGERED_WHEN_STOWED_TEST // Extra test for Allen Key Probe
  412. #endif
  413. #else
  414. // Clear probe pin settings when no probe is selected
  415. #undef Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
  416. #undef Z_MIN_PROBE_ENDSTOP
  417. #endif
  418. #define HOMING_Z_WITH_PROBE (HAS_BED_PROBE && Z_HOME_DIR < 0 && ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN))
  419. #ifdef GRID_MAX_POINTS_X
  420. #define GRID_MAX_POINTS ((GRID_MAX_POINTS_X) * (GRID_MAX_POINTS_Y))
  421. #endif
  422. #define HAS_SOFTWARE_ENDSTOPS (ENABLED(MIN_SOFTWARE_ENDSTOPS) || ENABLED(MAX_SOFTWARE_ENDSTOPS))
  423. #define HAS_RESUME_CONTINUE (ENABLED(EXTENSIBLE_UI) || ENABLED(NEWPANEL) || ENABLED(EMERGENCY_PARSER))
  424. #define HAS_COLOR_LEDS (ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED))
  425. #define HAS_LEDS_OFF_FLAG (ENABLED(PRINTER_EVENT_LEDS) && ENABLED(SDSUPPORT) && HAS_RESUME_CONTINUE)
  426. #define HAS_PRINT_PROGRESS (ENABLED(SDSUPPORT) || ENABLED(LCD_SET_PROGRESS_MANUALLY))
  427. #define Z_MULTI_STEPPER_DRIVERS (ENABLED(Z_DUAL_STEPPER_DRIVERS) || ENABLED(Z_TRIPLE_STEPPER_DRIVERS))
  428. #define Z_MULTI_ENDSTOPS (ENABLED(Z_DUAL_ENDSTOPS) || ENABLED(Z_TRIPLE_ENDSTOPS))
  429. #define IS_SCARA (ENABLED(MORGAN_SCARA) || ENABLED(MAKERARM_SCARA))
  430. #define IS_KINEMATIC (ENABLED(DELTA) || IS_SCARA)
  431. #define IS_CARTESIAN !IS_KINEMATIC