My Marlin configs for Fabrikator Mini and CTC i3 Pro B
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

Conditionals_LCD.h 15KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (C) 2019 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 ANY(miniVIKI, VIKI2, ELB_FULL_GRAPHIC_CONTROLLER, AZSMZ_12864)
  54. #define ULTRA_LCD
  55. #define DOGLCD
  56. #define ULTIMAKERCONTROLLER
  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 EITHER(MAKRPANEL, 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. // 128x64 I2C OLED LCDs - SSD1306/SSD1309/SH1106
  128. #define HAS_SSD1306_OLED_I2C ANY(U8GLIB_SSD1306, U8GLIB_SSD1309, U8GLIB_SH1106)
  129. #if HAS_SSD1306_OLED_I2C
  130. #define ULTRA_LCD
  131. #define DOGLCD
  132. #endif
  133. #if EITHER(PANEL_ONE, U8GLIB_SH1106)
  134. #define ULTIMAKERCONTROLLER
  135. #elif ENABLED(MAKEBOARD_MINI_2_LINE_DISPLAY_1602)
  136. #define REPRAP_DISCOUNT_SMART_CONTROLLER
  137. #define LCD_WIDTH 16
  138. #define LCD_HEIGHT 2
  139. #endif
  140. #if ANY(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER, LCD_FOR_MELZI, SILVER_GATE_GLCD_CONTROLLER)
  141. #define DOGLCD
  142. #define U8GLIB_ST7920
  143. #define REPRAP_DISCOUNT_SMART_CONTROLLER
  144. #endif
  145. #if ANY(ULTIMAKERCONTROLLER, REPRAP_DISCOUNT_SMART_CONTROLLER, G3D_PANEL, RIGIDBOT_PANEL, ULTI_CONTROLLER)
  146. #define ULTIPANEL
  147. #endif
  148. #if ENABLED(REPRAPWORLD_KEYPAD)
  149. #define NEWPANEL
  150. #if ENABLED(ULTIPANEL) && !defined(REPRAPWORLD_KEYPAD_MOVE_STEP)
  151. #define REPRAPWORLD_KEYPAD_MOVE_STEP 1.0
  152. #endif
  153. #endif
  154. /**
  155. * SPI PANELS
  156. */
  157. // Einstart OLED has Cardinal nav via pins defined in pins_EINSTART-S.h
  158. #if ENABLED(U8GLIB_SH1106_EINSTART)
  159. #define ULTRA_LCD
  160. #define DOGLCD
  161. #define ULTIPANEL
  162. #define NEWPANEL
  163. #endif
  164. /**
  165. * FSMC/SPI TFT PANELS
  166. */
  167. #if ENABLED(MKS_ROBIN_TFT)
  168. #define ULTRA_LCD
  169. #define DOGLCD
  170. #define ULTIPANEL
  171. #endif
  172. /**
  173. * I2C PANELS
  174. */
  175. #if EITHER(LCD_SAINSMART_I2C_1602, LCD_SAINSMART_I2C_2004)
  176. #define LCD_I2C_TYPE_PCF8575
  177. #define LCD_I2C_ADDRESS 0x27 // I2C Address of the port expander
  178. #if ENABLED(LCD_SAINSMART_I2C_2004)
  179. #define LCD_WIDTH 20
  180. #define LCD_HEIGHT 4
  181. #endif
  182. #elif ENABLED(LCD_I2C_PANELOLU2)
  183. // PANELOLU2 LCD with status LEDs, separate encoder and click inputs
  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 (optional)
  187. #define ULTIPANEL
  188. #elif ENABLED(LCD_I2C_VIKI)
  189. /**
  190. * Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs
  191. *
  192. * This uses the LiquidTWI2 library v1.2.3 or later ( https://github.com/lincomatic/LiquidTWI2 )
  193. * Make sure the LiquidTWI2 directory is placed in the Arduino or Sketchbook libraries subdirectory.
  194. * Note: The pause/stop/resume LCD button pin should be connected to the Arduino
  195. * BTN_ENC pin (or set BTN_ENC to -1 if not used)
  196. */
  197. #define LCD_I2C_TYPE_MCP23017
  198. #define LCD_I2C_ADDRESS 0x20 // I2C Address of the port expander
  199. #define LCD_USE_I2C_BUZZER // Enable buzzer on LCD (requires LiquidTWI2 v1.2.3 or later)
  200. #define ULTIPANEL
  201. #define ENCODER_FEEDRATE_DEADZONE 4
  202. #define STD_ENCODER_PULSES_PER_STEP 1
  203. #define STD_ENCODER_STEPS_PER_MENU_ITEM 2
  204. #elif ENABLED(G3D_PANEL)
  205. #define STD_ENCODER_PULSES_PER_STEP 2
  206. #define STD_ENCODER_STEPS_PER_MENU_ITEM 1
  207. #elif ANY(miniVIKI, VIKI2, ELB_FULL_GRAPHIC_CONTROLLER, AZSMZ_12864, OLED_PANEL_TINYBOY2, BQ_LCD_SMART_CONTROLLER, LCD_I2C_PANELOLU2, REPRAP_DISCOUNT_SMART_CONTROLLER)
  208. #define STD_ENCODER_PULSES_PER_STEP 4
  209. #define STD_ENCODER_STEPS_PER_MENU_ITEM 1
  210. #endif
  211. #ifndef STD_ENCODER_PULSES_PER_STEP
  212. #define STD_ENCODER_PULSES_PER_STEP 5
  213. #endif
  214. #ifndef STD_ENCODER_STEPS_PER_MENU_ITEM
  215. #define STD_ENCODER_STEPS_PER_MENU_ITEM 1
  216. #endif
  217. #ifndef ENCODER_PULSES_PER_STEP
  218. #define ENCODER_PULSES_PER_STEP STD_ENCODER_PULSES_PER_STEP
  219. #endif
  220. #ifndef ENCODER_STEPS_PER_MENU_ITEM
  221. #define ENCODER_STEPS_PER_MENU_ITEM STD_ENCODER_STEPS_PER_MENU_ITEM
  222. #endif
  223. #ifndef ENCODER_FEEDRATE_DEADZONE
  224. #define ENCODER_FEEDRATE_DEADZONE 6
  225. #endif
  226. // Shift register panels
  227. // ---------------------
  228. // 2 wire Non-latching LCD SR from:
  229. // https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection
  230. #if ENABLED(FF_INTERFACEBOARD)
  231. #define SR_LCD_3W_NL // Non latching 3 wire shift register
  232. #define ULTIPANEL
  233. #endif
  234. #if ENABLED(SAV_3DLCD)
  235. #define SR_LCD_2W_NL // Non latching 2 wire shift register
  236. #define ULTIPANEL
  237. #endif
  238. #if ENABLED(ULTIPANEL)
  239. #define NEWPANEL // Disable this if you actually have no click-encoder panel
  240. #define ULTRA_LCD
  241. #endif
  242. // Aliases for LCD features
  243. #define HAS_SPI_LCD ENABLED(ULTRA_LCD)
  244. #define HAS_GRAPHICAL_LCD ENABLED(DOGLCD)
  245. #define HAS_CHARACTER_LCD (HAS_SPI_LCD && !HAS_GRAPHICAL_LCD)
  246. #define HAS_LCD_MENU (ENABLED(ULTIPANEL) && DISABLED(NO_LCD_MENUS))
  247. #define HAS_ADC_BUTTONS ENABLED(ADC_KEYPAD)
  248. #if HAS_GRAPHICAL_LCD
  249. /**
  250. * Default LCD contrast for Graphical LCD displays
  251. */
  252. #define HAS_LCD_CONTRAST ( \
  253. ENABLED(MAKRPANEL) \
  254. || ENABLED(CARTESIO_UI) \
  255. || ENABLED(VIKI2) \
  256. || ENABLED(AZSMZ_12864) \
  257. || ENABLED(miniVIKI) \
  258. || ENABLED(ELB_FULL_GRAPHIC_CONTROLLER) \
  259. )
  260. #if HAS_LCD_CONTRAST
  261. #ifndef LCD_CONTRAST_MIN
  262. #define LCD_CONTRAST_MIN 0
  263. #endif
  264. #ifndef LCD_CONTRAST_MAX
  265. #define LCD_CONTRAST_MAX 63
  266. #endif
  267. #ifndef DEFAULT_LCD_CONTRAST
  268. #define DEFAULT_LCD_CONTRAST 32
  269. #endif
  270. #endif
  271. #endif
  272. // Boot screens
  273. #if !HAS_SPI_LCD
  274. #undef SHOW_BOOTSCREEN
  275. #elif !defined(BOOTSCREEN_TIMEOUT)
  276. #define BOOTSCREEN_TIMEOUT 2500
  277. #endif
  278. /**
  279. * Extruders have some combination of stepper motors and hotends
  280. * so we separate these concepts into the defines:
  281. *
  282. * EXTRUDERS - Number of Selectable Tools
  283. * HOTENDS - Number of hotends, whether connected or separate
  284. * E_STEPPERS - Number of actual E stepper motors
  285. * E_MANUAL - Number of E steppers for LCD move options
  286. *
  287. */
  288. #if EXTRUDERS == 0
  289. #undef DISTINCT_E_FACTORS
  290. #undef SINGLENOZZLE
  291. #undef SWITCHING_EXTRUDER
  292. #undef SWITCHING_NOZZLE
  293. #undef MIXING_EXTRUDER
  294. #undef MK2_MULTIPLEXER
  295. #undef PRUSA_MMU2
  296. #endif
  297. #if ENABLED(SWITCHING_EXTRUDER) // One stepper for every two EXTRUDERS
  298. #if EXTRUDERS > 4
  299. #define E_STEPPERS 3
  300. #elif EXTRUDERS > 2
  301. #define E_STEPPERS 2
  302. #else
  303. #define E_STEPPERS 1
  304. #endif
  305. #if DISABLED(SWITCHING_NOZZLE)
  306. #define HOTENDS E_STEPPERS
  307. #endif
  308. #elif ENABLED(MIXING_EXTRUDER)
  309. #define E_STEPPERS MIXING_STEPPERS
  310. #define E_MANUAL 1
  311. #define DUAL_MIXING_EXTRUDER (MIXING_STEPPERS == 2)
  312. #elif ENABLED(SWITCHING_TOOLHEAD)
  313. #define E_STEPPERS EXTRUDERS
  314. #define E_MANUAL EXTRUDERS
  315. #elif ENABLED(PRUSA_MMU2)
  316. #define E_STEPPERS 1
  317. #ifndef TOOLCHANGE_ZRAISE
  318. #define TOOLCHANGE_ZRAISE 0
  319. #endif
  320. #endif
  321. // No inactive extruders with MK2_MULTIPLEXER or SWITCHING_NOZZLE
  322. #if EITHER(MK2_MULTIPLEXER, SWITCHING_NOZZLE)
  323. #undef DISABLE_INACTIVE_EXTRUDER
  324. #endif
  325. // Prusa MK2 Multiplexer and MMU 2.0 force SINGLENOZZLE
  326. #if EITHER(MK2_MULTIPLEXER, PRUSA_MMU2)
  327. #define SINGLENOZZLE
  328. #endif
  329. #if EITHER(SINGLENOZZLE, MIXING_EXTRUDER) // One hotend, one thermistor, no XY offset
  330. #undef HOTENDS
  331. #define HOTENDS 1
  332. #undef TEMP_SENSOR_1_AS_REDUNDANT
  333. #undef HOTEND_OFFSET_X
  334. #undef HOTEND_OFFSET_Y
  335. #endif
  336. #ifndef HOTENDS
  337. #define HOTENDS EXTRUDERS
  338. #endif
  339. #ifndef E_STEPPERS
  340. #define E_STEPPERS EXTRUDERS
  341. #endif
  342. #ifndef E_MANUAL
  343. #define E_MANUAL EXTRUDERS
  344. #endif
  345. #define HOTEND_LOOP() for (int8_t e = 0; e < HOTENDS; e++)
  346. #define DO_SWITCH_EXTRUDER (ENABLED(SWITCHING_EXTRUDER) && (DISABLED(SWITCHING_NOZZLE) || SWITCHING_EXTRUDER_SERVO_NR != SWITCHING_NOZZLE_SERVO_NR))
  347. #define SWITCHING_NOZZLE_TWO_SERVOS defined(SWITCHING_NOZZLE_E1_SERVO_NR)
  348. #define HAS_HOTEND_OFFSET (HOTENDS > 1)
  349. #define HAS_DUPLICATION_MODE EITHER(DUAL_X_CARRIAGE, MULTI_NOZZLE_DUPLICATION)
  350. /**
  351. * DISTINCT_E_FACTORS affects how some E factors are accessed
  352. */
  353. #if ENABLED(DISTINCT_E_FACTORS) && E_STEPPERS > 1
  354. #define XYZE_N (XYZ + E_STEPPERS)
  355. #define E_AXIS_N(E) (E_AXIS + E)
  356. #else
  357. #undef DISTINCT_E_FACTORS
  358. #define XYZE_N XYZE
  359. #define E_AXIS_N(E) E_AXIS
  360. #endif
  361. /**
  362. * The BLTouch Probe emulates a servo probe
  363. * and uses "special" angles for its state.
  364. */
  365. #if ENABLED(BLTOUCH)
  366. #ifndef Z_PROBE_SERVO_NR
  367. #define Z_PROBE_SERVO_NR 0
  368. #endif
  369. #ifndef NUM_SERVOS
  370. #define NUM_SERVOS (Z_PROBE_SERVO_NR + 1)
  371. #endif
  372. #undef DEACTIVATE_SERVOS_AFTER_MOVE
  373. #if NUM_SERVOS == 1
  374. #undef SERVO_DELAY
  375. #define SERVO_DELAY { 50 }
  376. #endif
  377. #ifndef BLTOUCH_DELAY
  378. #define BLTOUCH_DELAY 375
  379. #endif
  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 false
  386. #endif
  387. #endif
  388. #ifndef PREHEAT_1_LABEL
  389. #define PREHEAT_1_LABEL "PLA"
  390. #endif
  391. #ifndef PREHEAT_2_LABEL
  392. #define PREHEAT_2_LABEL "ABS"
  393. #endif
  394. /**
  395. * Set a flag for a servo probe
  396. */
  397. #define HAS_Z_SERVO_PROBE (defined(Z_PROBE_SERVO_NR) && Z_PROBE_SERVO_NR >= 0)
  398. /**
  399. * Set flags for enabled probes
  400. */
  401. #define HAS_BED_PROBE (HAS_Z_SERVO_PROBE || ANY(FIX_MOUNTED_PROBE, Z_PROBE_ALLEN_KEY, Z_PROBE_SLED, SOLENOID_PROBE, SENSORLESS_PROBING, RACK_AND_PINION_PROBE))
  402. #define PROBE_SELECTED (HAS_BED_PROBE || EITHER(PROBE_MANUALLY, MESH_BED_LEVELING))
  403. #if HAS_BED_PROBE
  404. #define USES_Z_MIN_PROBE_ENDSTOP DISABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
  405. #ifndef Z_PROBE_LOW_POINT
  406. #define Z_PROBE_LOW_POINT -5
  407. #endif
  408. #if ENABLED(Z_PROBE_ALLEN_KEY)
  409. #define PROBE_TRIGGERED_WHEN_STOWED_TEST // Extra test for Allen Key Probe
  410. #endif
  411. #else
  412. // Clear probe pin settings when no probe is selected
  413. #undef Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
  414. #endif
  415. #define HOMING_Z_WITH_PROBE (HAS_BED_PROBE && Z_HOME_DIR < 0 && ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN))
  416. #ifdef GRID_MAX_POINTS_X
  417. #define GRID_MAX_POINTS ((GRID_MAX_POINTS_X) * (GRID_MAX_POINTS_Y))
  418. #endif
  419. #define HAS_SOFTWARE_ENDSTOPS EITHER(MIN_SOFTWARE_ENDSTOPS, MAX_SOFTWARE_ENDSTOPS)
  420. #define HAS_RESUME_CONTINUE ANY(EXTENSIBLE_UI, NEWPANEL, EMERGENCY_PARSER)
  421. #define HAS_COLOR_LEDS ANY(BLINKM, RGB_LED, RGBW_LED, PCA9632, PCA9533, NEOPIXEL_LED)
  422. #define HAS_LEDS_OFF_FLAG (BOTH(PRINTER_EVENT_LEDS, SDSUPPORT) && HAS_RESUME_CONTINUE)
  423. #define HAS_PRINT_PROGRESS EITHER(SDSUPPORT, LCD_SET_PROGRESS_MANUALLY)
  424. #define HAS_SERVICE_INTERVALS (SERVICE_INTERVAL_1 > 0 || SERVICE_INTERVAL_2 > 0 || SERVICE_INTERVAL_3 > 0)
  425. #define HAS_FILAMENT_SENSOR ENABLED(FILAMENT_RUNOUT_SENSOR)
  426. #define Z_MULTI_STEPPER_DRIVERS EITHER(Z_DUAL_STEPPER_DRIVERS, Z_TRIPLE_STEPPER_DRIVERS)
  427. #define Z_MULTI_ENDSTOPS EITHER(Z_DUAL_ENDSTOPS, Z_TRIPLE_ENDSTOPS)
  428. #define HAS_EXTRA_ENDSTOPS (EITHER(X_DUAL_ENDSTOPS, Y_DUAL_ENDSTOPS) || Z_MULTI_ENDSTOPS)
  429. #define IS_SCARA EITHER(MORGAN_SCARA, MAKERARM_SCARA)
  430. #define IS_KINEMATIC (ENABLED(DELTA) || IS_SCARA)
  431. #define IS_CARTESIAN !IS_KINEMATIC
  432. #ifndef INVERT_X_DIR
  433. #define INVERT_X_DIR false
  434. #endif
  435. #ifndef INVERT_Y_DIR
  436. #define INVERT_Y_DIR false
  437. #endif
  438. #ifndef INVERT_Z_DIR
  439. #define INVERT_Z_DIR false
  440. #endif
  441. #ifndef INVERT_E_DIR
  442. #define INVERT_E_DIR false
  443. #endif
  444. #if ENABLED(HOST_ACTION_COMMANDS)
  445. #ifndef ACTION_ON_PAUSE
  446. #define ACTION_ON_PAUSE "pause"
  447. #endif
  448. #ifndef ACTION_ON_RESUME
  449. #define ACTION_ON_RESUME "resume"
  450. #endif
  451. #ifndef ACTION_ON_PAUSED
  452. #define ACTION_ON_PAUSED "paused"
  453. #endif
  454. #ifndef ACTION_ON_RESUMED
  455. #define ACTION_ON_RESUMED "resumed"
  456. #endif
  457. #ifndef ACTION_ON_CANCEL
  458. #define ACTION_ON_CANCEL "cancel"
  459. #endif
  460. #if ENABLED(G29_RETRY_AND_RECOVER)
  461. #ifndef ACTION_ON_G29_RECOVER
  462. #define ACTION_ON_G29_RECOVER "probe_rewipe"
  463. #endif
  464. #ifndef ACTION_ON_G29_FAILURE
  465. #define ACTION_ON_G29_FAILURE "probe_failed"
  466. #endif
  467. #endif
  468. #endif