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_adv.h 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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_adv.h
  25. * Defines that depend on advanced configuration.
  26. */
  27. #if EXTRUDERS == 0
  28. #define NO_VOLUMETRICS
  29. #undef TEMP_SENSOR_0
  30. #undef TEMP_SENSOR_1
  31. #undef TEMP_SENSOR_2
  32. #undef TEMP_SENSOR_3
  33. #undef TEMP_SENSOR_4
  34. #undef TEMP_SENSOR_5
  35. #undef FWRETRACT
  36. #undef PIDTEMP
  37. #undef AUTOTEMP
  38. #undef PID_EXTRUSION_SCALING
  39. #undef LIN_ADVANCE
  40. #undef FILAMENT_RUNOUT_SENSOR
  41. #undef ADVANCED_PAUSE_FEATURE
  42. #undef FILAMENT_RUNOUT_DISTANCE_MM
  43. #undef FILAMENT_LOAD_UNLOAD_GCODES
  44. #undef DISABLE_INACTIVE_EXTRUDER
  45. #undef FILAMENT_LOAD_UNLOAD_GCODES
  46. #undef EXTRUDER_RUNOUT_PREVENT
  47. #undef PREVENT_COLD_EXTRUSION
  48. #undef PREVENT_LENGTHY_EXTRUDE
  49. #undef THERMAL_PROTECTION_HOTENDS
  50. #undef THERMAL_PROTECTION_PERIOD
  51. #undef WATCH_TEMP_PERIOD
  52. #undef SHOW_TEMP_ADC_VALUES
  53. #endif
  54. // Multiple Z steppers
  55. #ifndef NUM_Z_STEPPER_DRIVERS
  56. #define NUM_Z_STEPPER_DRIVERS 1
  57. #endif
  58. #define HAS_CUTTER EITHER(SPINDLE_FEATURE, LASER_FEATURE)
  59. #if !defined(__AVR__) || !defined(USBCON)
  60. // Define constants and variables for buffering serial data.
  61. // Use only 0 or powers of 2 greater than 1
  62. // : [0, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, ...]
  63. #ifndef RX_BUFFER_SIZE
  64. #define RX_BUFFER_SIZE 128
  65. #endif
  66. // 256 is the max TX buffer limit due to uint8_t head and tail
  67. // : [0, 4, 8, 16, 32, 64, 128, 256]
  68. #ifndef TX_BUFFER_SIZE
  69. #define TX_BUFFER_SIZE 32
  70. #endif
  71. #else
  72. // SERIAL_XON_XOFF not supported on USB-native devices
  73. #undef SERIAL_XON_XOFF
  74. #endif
  75. #if ENABLED(HOST_ACTION_COMMANDS)
  76. #ifndef ACTION_ON_PAUSE
  77. #define ACTION_ON_PAUSE "pause"
  78. #endif
  79. #ifndef ACTION_ON_PAUSED
  80. #define ACTION_ON_PAUSED "paused"
  81. #endif
  82. #ifndef ACTION_ON_RESUME
  83. #define ACTION_ON_RESUME "resume"
  84. #endif
  85. #ifndef ACTION_ON_RESUMED
  86. #define ACTION_ON_RESUMED "resumed"
  87. #endif
  88. #ifndef ACTION_ON_CANCEL
  89. #define ACTION_ON_CANCEL "cancel"
  90. #endif
  91. #ifndef ACTION_ON_KILL
  92. #define ACTION_ON_KILL "poweroff"
  93. #endif
  94. #if HAS_FILAMENT_SENSOR
  95. #ifndef ACTION_ON_FILAMENT_RUNOUT
  96. #define ACTION_ON_FILAMENT_RUNOUT "filament_runout"
  97. #endif
  98. #ifndef ACTION_REASON_ON_FILAMENT_RUNOUT
  99. #define ACTION_REASON_ON_FILAMENT_RUNOUT "filament_runout"
  100. #endif
  101. #endif
  102. #if ENABLED(G29_RETRY_AND_RECOVER)
  103. #ifndef ACTION_ON_G29_RECOVER
  104. #define ACTION_ON_G29_RECOVER "probe_rewipe"
  105. #endif
  106. #ifndef ACTION_ON_G29_FAILURE
  107. #define ACTION_ON_G29_FAILURE "probe_failed"
  108. #endif
  109. #endif
  110. #endif
  111. #if ENABLED(FYSETC_MINI_12864_2_1)
  112. #define LED_CONTROL_MENU
  113. #define LED_USER_PRESET_STARTUP
  114. #define LED_COLOR_PRESETS
  115. #ifndef LED_USER_PRESET_RED
  116. #define LED_USER_PRESET_RED 255
  117. #endif
  118. #ifndef LED_USER_PRESET_GREEN
  119. #define LED_USER_PRESET_GREEN 128
  120. #endif
  121. #ifndef LED_USER_PRESET_BLUE
  122. #define LED_USER_PRESET_BLUE 0
  123. #endif
  124. #ifndef LED_USER_PRESET_BRIGHTNESS
  125. #define LED_USER_PRESET_BRIGHTNESS 255
  126. #endif
  127. #endif
  128. // Extensible UI pin mapping for RepRapDiscount
  129. #define TOUCH_UI_ULTIPANEL ENABLED(TOUCH_UI_FTDI_EVE) && ANY(AO_EXP1_PINMAP, AO_EXP2_PINMAP, CR10_TFT_PINMAP)
  130. // Poll-based jogging for joystick and other devices
  131. #if ENABLED(JOYSTICK)
  132. #define POLL_JOG
  133. #endif