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.

mega2560 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. #!/usr/bin/env bash
  2. #
  3. # Build tests for AVR ATmega2560
  4. #
  5. # exit on first failure
  6. set -e
  7. #
  8. # Build with the default configurations
  9. #
  10. #restore_configs
  11. #exec_test $1 $2 "Default Configuration" "$3"
  12. #
  13. # Build with no source filers
  14. #
  15. restore_configs
  16. ci_src_filter -n
  17. exec_test $1 $2 "Default Configuration | no source filtering" "$3"
  18. ci_src_filter -y
  19. #
  20. # Test a probeless build of AUTO_BED_LEVELING_UBL, with lots of extruders
  21. #
  22. use_example_configs AnimationExample
  23. opt_set MOTHERBOARD BOARD_AZTEEG_X3_PRO LCD_LANGUAGE fr SAVED_POSITIONS 4 DEFAULT_EJERK 10 \
  24. EXTRUDERS 5 TEMP_SENSOR_1 1 TEMP_SENSOR_2 5 TEMP_SENSOR_3 20 TEMP_SENSOR_4 1000 TEMP_SENSOR_BED 1
  25. opt_enable AUTO_BED_LEVELING_UBL RESTORE_LEVELING_AFTER_G28 DEBUG_LEVELING_FEATURE G26_MESH_VALIDATION ENABLE_LEVELING_FADE_HEIGHT SKEW_CORRECTION \
  26. REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER LIGHTWEIGHT_UI STATUS_MESSAGE_SCROLLING SHOW_CUSTOM_BOOTSCREEN BOOT_MARLIN_LOGO_SMALL \
  27. SDSUPPORT SDCARD_SORT_ALPHA USB_FLASH_DRIVE_SUPPORT AUTO_REPORT_SD_STATUS SCROLL_LONG_FILENAMES MEDIA_MENU_AT_TOP \
  28. EEPROM_SETTINGS EEPROM_CHITCHAT GCODE_MACROS CUSTOM_MENU_MAIN FREEZE_FEATURE CANCEL_OBJECTS SOUND_MENU_ITEM \
  29. MULTI_NOZZLE_DUPLICATION CLASSIC_JERK LIN_ADVANCE EXTRA_LIN_ADVANCE_K QUICK_HOME \
  30. LCD_SET_PROGRESS_MANUALLY PRINT_PROGRESS_SHOW_DECIMALS SHOW_REMAINING_TIME \
  31. ENCODER_NOISE_FILTER BABYSTEPPING BABYSTEP_XY NANODLP_Z_SYNC I2C_POSITION_ENCODERS M114_DETAIL
  32. exec_test $1 $2 "Azteeg X3 Pro | EXTRUDERS 5 | RRDFGSC | UBL | LIN_ADVANCE ..." "$3"
  33. #
  34. # Add a Sled Z Probe, use UBL Cartesian moves, use Japanese language
  35. #
  36. use_example_configs AnimationExample
  37. opt_set MOTHERBOARD BOARD_AZTEEG_X3_PRO LCD_LANGUAGE jp_kana DEFAULT_EJERK 10 \
  38. EXTRUDERS 5 TEMP_SENSOR_1 1 TEMP_SENSOR_2 5 TEMP_SENSOR_3 20 TEMP_SENSOR_4 1000 TEMP_SENSOR_BED 1
  39. opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER LIGHTWEIGHT_UI SHOW_CUSTOM_BOOTSCREEN BOOT_MARLIN_LOGO_SMALL \
  40. LCD_SET_PROGRESS_MANUALLY PRINT_PROGRESS_SHOW_DECIMALS SHOW_REMAINING_TIME STATUS_MESSAGE_SCROLLING SCROLL_LONG_FILENAMES \
  41. SDSUPPORT LONG_FILENAME_WRITE_SUPPORT SDCARD_SORT_ALPHA NO_SD_AUTOSTART USB_FLASH_DRIVE_SUPPORT CANCEL_OBJECTS \
  42. Z_PROBE_SLED AUTO_BED_LEVELING_UBL UBL_HILBERT_CURVE RESTORE_LEVELING_AFTER_G28 DEBUG_LEVELING_FEATURE G26_MESH_VALIDATION ENABLE_LEVELING_FADE_HEIGHT \
  43. EEPROM_SETTINGS EEPROM_CHITCHAT GCODE_MACROS CUSTOM_MENU_MAIN \
  44. MULTI_NOZZLE_DUPLICATION CLASSIC_JERK LIN_ADVANCE QUICK_HOME \
  45. NANODLP_Z_SYNC I2C_POSITION_ENCODERS M114_DETAIL \
  46. SKEW_CORRECTION SKEW_CORRECTION_FOR_Z SKEW_CORRECTION_GCODE \
  47. BABYSTEPPING BABYSTEP_XY BABYSTEP_ZPROBE_OFFSET DOUBLECLICK_FOR_Z_BABYSTEPPING BABYSTEP_HOTEND_Z_OFFSET BABYSTEP_DISPLAY_TOTAL
  48. opt_disable SEGMENT_LEVELED_MOVES
  49. exec_test $1 $2 "Azteeg X3 Pro | EXTRUDERS 5 | RRDFGSC | UBL | LIN_ADVANCE | Sled Probe | Skew | JP-Kana | Babystep offsets ..." "$3"
  50. #
  51. # 5 runout sensors with distinct states
  52. #
  53. restore_configs
  54. opt_set MOTHERBOARD BOARD_AZTEEG_X3_PRO NUM_SERVOS 1 \
  55. EXTRUDERS 5 TEMP_SENSOR_1 1 TEMP_SENSOR_2 1 TEMP_SENSOR_3 1 TEMP_SENSOR_4 1 \
  56. NUM_RUNOUT_SENSORS 5 FIL_RUNOUT2_PIN 44 FIL_RUNOUT3_PIN 45 FIL_RUNOUT4_PIN 46 FIL_RUNOUT5_PIN 47 \
  57. FIL_RUNOUT3_STATE HIGH
  58. opt_enable VIKI2 BOOT_MARLIN_LOGO_ANIMATED SDSUPPORT AUTO_REPORT_SD_STATUS \
  59. Z_PROBE_SERVO_NR Z_SERVO_ANGLES DEACTIVATE_SERVOS_AFTER_MOVE AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE \
  60. EEPROM_SETTINGS EEPROM_CHITCHAT M114_DETAIL AUTO_REPORT_POSITION \
  61. NO_VOLUMETRICS EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES AUTOTEMP G38_PROBE_TARGET JOYSTICK \
  62. DIRECT_STEPPING DETECT_BROKEN_ENDSTOP \
  63. FILAMENT_RUNOUT_SENSOR NOZZLE_PARK_FEATURE ADVANCED_PAUSE_FEATURE Z_SAFE_HOMING FIL_RUNOUT3_PULLUP
  64. exec_test $1 $2 "Multiple runout sensors (x5) | Distinct runout states" "$3"
  65. #
  66. # Mixing Extruder with 5 steppers, Greek
  67. #
  68. restore_configs
  69. opt_set MOTHERBOARD BOARD_AZTEEG_X3_PRO MIXING_STEPPERS 5 LCD_LANGUAGE ru \
  70. NUM_RUNOUT_SENSORS E_STEPPERS REDUNDANT_PART_COOLING_FAN 1 \
  71. FIL_RUNOUT2_PIN 16 FIL_RUNOUT3_PIN 17 FIL_RUNOUT4_PIN 4 FIL_RUNOUT5_PIN 5
  72. opt_enable MIXING_EXTRUDER GRADIENT_MIX GRADIENT_VTOOL CR10_STOCKDISPLAY \
  73. USE_CONTROLLER_FAN CONTROLLER_FAN_EDITABLE CONTROLLER_FAN_IGNORE_Z \
  74. FILAMENT_RUNOUT_SENSOR ADVANCED_PAUSE_FEATURE NOZZLE_PARK_FEATURE
  75. opt_disable DISABLE_INACTIVE_EXTRUDER
  76. exec_test $1 $2 "Azteeg X3 | Mixing Extruder (x5) | Gradient Mix | Greek" "$3"
  77. #
  78. # Test SPEAKER with BOARD_BQ_ZUM_MEGA_3D and BQ_LCD_SMART_CONTROLLER
  79. #
  80. #restore_configs
  81. #opt_set MOTHERBOARD BOARD_BQ_ZUM_MEGA_3D \
  82. # LCD_FEEDBACK_FREQUENCY_DURATION_MS 10 LCD_FEEDBACK_FREQUENCY_HZ 100
  83. #opt_enable BQ_LCD_SMART_CONTROLLER SPEAKER
  84. #
  85. # Enable COREXY
  86. #
  87. #restore_configs
  88. #opt_enable COREXY
  89. #exec_test $1 $2 "Stuff" "$3"
  90. ######## Other Standard LCD/Panels ##############
  91. #
  92. # ULTRA_LCD
  93. #
  94. #restore_configs
  95. #opt_enable ULTRA_LCD
  96. #exec_test $1 $2 "Stuff" "$3"
  97. #
  98. # DOGLCD
  99. #
  100. #restore_configs
  101. #opt_enable DOGLCD
  102. #exec_test $1 $2 "Stuff" "$3"
  103. #
  104. # MAKRPANEL
  105. # Needs to use Melzi and Sanguino hardware
  106. #
  107. #restore_configs
  108. #opt_enable MAKRPANEL
  109. #exec_test $1 $2 "Stuff" "$3"
  110. #
  111. # REPRAP_DISCOUNT_SMART_CONTROLLER, SDSUPPORT, BABYSTEPPING, RIGIDBOARD_V2, and DAC_MOTOR_CURRENT_DEFAULT
  112. #
  113. #restore_configs
  114. #opt_set MOTHERBOARD BOARD_RIGIDBOARD_V2
  115. #opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT BABYSTEPPING DAC_MOTOR_CURRENT_DEFAULT
  116. #exec_test $1 $2 "Stuff" "$3"
  117. # #
  118. # G3D_PANEL with SDCARD_SORT_ALPHA and STATUS_MESSAGE_SCROLLING
  119. #
  120. #restore_configs
  121. #opt_enable G3D_PANEL SDSUPPORT SDCARD_SORT_ALPHA STATUS_MESSAGE_SCROLLING SCROLL_LONG_FILENAMES
  122. #opt_set SDSORT_GCODE true SDSORT_USES_RAM true SDSORT_USES_STACK true SDSORT_CACHE_NAMES true
  123. #exec_test $1 $2 "Stuff" "$3"
  124. #
  125. # REPRAPWORLD_KEYPAD
  126. #
  127. # Can't find configuration details to get it to compile
  128. #restore_configs
  129. #opt_enable ULTRA_LCD REPRAPWORLD_KEYPAD REPRAPWORLD_KEYPAD_MOVE_STEP
  130. #exec_test $1 $2 "Stuff" "$3"
  131. #
  132. # RA_CONTROL_PANEL
  133. #
  134. #restore_configs
  135. #opt_enable RA_CONTROL_PANEL PINS_DEBUGGING
  136. #exec_test $1 $2 "Stuff" "$3"
  137. ######## I2C LCD/PANELS ##############
  138. #
  139. # !!!ATTENTION!!!
  140. # Most I2C configurations are failing at the moment because they require
  141. # a different Liquid Crystal library "LiquidTWI2".
  142. #
  143. # LCD_SAINSMART_I2C_1602
  144. #
  145. #restore_configs
  146. #opt_enable LCD_SAINSMART_I2C_1602
  147. #exec_test $1 $2 "Stuff" "$3"
  148. #
  149. # LCD_I2C_PANELOLU2
  150. #
  151. #restore_configs
  152. #opt_enable LCD_I2C_PANELOLU2
  153. #exec_test $1 $2 "Stuff" "$3"
  154. #
  155. # LCD_I2C_VIKI
  156. #
  157. #restore_configs
  158. #opt_enable LCD_I2C_VIKI
  159. #exec_test $1 $2 "Stuff" "$3"
  160. #
  161. # LCM1602
  162. #
  163. #restore_configs
  164. #opt_enable LCM1602
  165. #exec_test $1 $2 "Stuff" "$3"
  166. #
  167. # Test Laser features with 12864 LCD
  168. #
  169. restore_configs
  170. opt_set MOTHERBOARD BOARD_RAMPS_14_EFB EXTRUDERS 0 LCD_LANGUAGE en TEMP_SENSOR_COOLER 1 TEMP_SENSOR_1 0 SERIAL_PORT_2 2 \
  171. DEFAULT_AXIS_STEPS_PER_UNIT '{ 80, 80, 400 }' \
  172. DEFAULT_MAX_FEEDRATE '{ 300, 300, 5 }' \
  173. DEFAULT_MAX_ACCELERATION '{ 3000, 3000, 100 }' \
  174. MANUAL_FEEDRATE '{ 50*60, 50*60, 4*60 }' \
  175. AXIS_RELATIVE_MODES '{ false, false, false }'
  176. opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER SDSUPPORT EEPROM_SETTINGS EEPROM_BOOT_SILENT EEPROM_AUTO_INIT MEATPACK_ON_SERIAL_PORT_1 \
  177. LASER_FEATURE LASER_SAFETY_TIMEOUT_MS LASER_COOLANT_FLOW_METER AIR_EVACUATION AIR_EVACUATION_PIN AIR_ASSIST AIR_ASSIST_PIN LASER_SYNCHRONOUS_M106_M107
  178. exec_test $1 $2 "MEGA2560 RAMPS | Laser Options | 12864 | Meatpack | Fan Sync | SERIAL_PORT_2 " "$3"
  179. #
  180. # Test Laser features with 44780 LCD
  181. #
  182. restore_configs
  183. opt_set MOTHERBOARD BOARD_RAMPS_14_EFB EXTRUDERS 0 LCD_LANGUAGE en TEMP_SENSOR_COOLER 1 TEMP_SENSOR_1 0 \
  184. DEFAULT_AXIS_STEPS_PER_UNIT '{ 80, 80, 400 }' \
  185. DEFAULT_MAX_FEEDRATE '{ 300, 300, 5 }' \
  186. DEFAULT_MAX_ACCELERATION '{ 3000, 3000, 100 }' \
  187. MANUAL_FEEDRATE '{ 50*60, 50*60, 4*60 }' \
  188. AXIS_RELATIVE_MODES '{ false, false, false }'
  189. opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT EEPROM_SETTINGS EEPROM_BOOT_SILENT EEPROM_AUTO_INIT PRINTCOUNTER I2C_AMMETER \
  190. LASER_FEATURE LASER_SAFETY_TIMEOUT_MS LASER_COOLANT_FLOW_METER AIR_EVACUATION AIR_EVACUATION_PIN AIR_ASSIST AIR_ASSIST_PIN
  191. exec_test $1 $2 "MEGA2560 RAMPS | Laser Feature | Air Evacuation | Air Assist | Cooler | Laser Safety Timeout | Flowmeter | 44780 LCD " "$3"
  192. #
  193. # Test redundant temperature sensors + MAX TC + Backlight Timeout
  194. #
  195. restore_configs
  196. opt_set MOTHERBOARD BOARD_RAMPS_14_EFB EXTRUDERS 1 \
  197. TEMP_SENSOR_0 -2 TEMP_SENSOR_REDUNDANT -2 \
  198. TEMP_SENSOR_REDUNDANT_SOURCE E1 TEMP_SENSOR_REDUNDANT_TARGET E0 \
  199. TEMP_0_CS_PIN 11 TEMP_1_CS_PIN 12 \
  200. LCD_BACKLIGHT_TIMEOUT 30
  201. opt_enable MPCTEMP MINIPANEL
  202. opt_disable PIDTEMP
  203. exec_test $1 $2 "MEGA2560 RAMPS | Redundant temperature sensor | 2x MAX6675 | BL Timeout" "$3"
  204. #
  205. # Polargraph Config
  206. #
  207. use_example_configs Polargraph
  208. exec_test $1 $2 "RUMBA | POLARGRAPH | RRD LCD" "$3"
  209. #
  210. # Language files test with REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
  211. #
  212. #restore_configs
  213. #opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER SDSUPPORT
  214. #for lang in an bg ca cz da de el el_CY en es eu fi fr gl hr hu it jp_kana nl pl pt pt_br ro ru sk sv tr uk vi zh_CN zh_TW test; do opt_set LCD_LANGUAGE $lang; echo "compile with language $lang ..."; exec_test $1 $2 "Stuff" "$3"; done
  215. #
  216. #restore_configs
  217. #opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT
  218. #for lang in an bg ca cz da de el el_CY en es eu fi fr gl hr hu it jp_kana nl pl pt pt_br ro ru sk sv tr uk vi zh_CN zh_TW test; do opt_set LCD_LANGUAGE $lang; echo "compile with language $lang ..."; exec_test $1 $2 "Stuff" "$3"; done
  219. ######## Example Configurations ##############
  220. #
  221. # Test a basic DUAL_X_CARRIAGE configuration
  222. #
  223. use_example_configs Formbot/T_Rex_3
  224. exec_test $1 $2 "Formbot/T_Rex_3 example configuration." "$3"
  225. #
  226. # BQ Hephestos 2
  227. #restore_configs
  228. #use_example_configs BQ/Hephestos_2
  229. #exec_test $1 $2 "Stuff" "$3"
  230. #
  231. # Makibox Config need to check board type for Teensy++ 2.0
  232. #
  233. #use_example_configs makibox
  234. #exec_test $1 $2 "Stuff" "$3"
  235. #
  236. # tvrrug Config need to check board type for sanguino atmega644p
  237. #
  238. #use_example_configs tvrrug/Round2
  239. #exec_test $1 $2 "Stuff" "$3"
  240. # clean up
  241. restore_configs