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.1KB

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