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 9.7KB

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