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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  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 \
  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 \
  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. exec_test $1 $2 "Azteeg X3 | Mixing Extruder (x5) | Gradient Mix | Greek" "$3"
  69. #
  70. # Test SPEAKER with BOARD_BQ_ZUM_MEGA_3D and BQ_LCD_SMART_CONTROLLER
  71. #
  72. #restore_configs
  73. #opt_set MOTHERBOARD BOARD_BQ_ZUM_MEGA_3D \
  74. # LCD_FEEDBACK_FREQUENCY_DURATION_MS 10 LCD_FEEDBACK_FREQUENCY_HZ 100
  75. #opt_enable BQ_LCD_SMART_CONTROLLER SPEAKER
  76. #
  77. # Enable COREXY
  78. #
  79. #restore_configs
  80. #opt_enable COREXY
  81. #exec_test $1 $2 "Stuff" "$3"
  82. ######## Other Standard LCD/Panels ##############
  83. #
  84. # ULTRA_LCD
  85. #
  86. #restore_configs
  87. #opt_enable ULTRA_LCD
  88. #exec_test $1 $2 "Stuff" "$3"
  89. #
  90. # DOGLCD
  91. #
  92. #restore_configs
  93. #opt_enable DOGLCD
  94. #exec_test $1 $2 "Stuff" "$3"
  95. #
  96. # MAKRPANEL
  97. # Needs to use Melzi and Sanguino hardware
  98. #
  99. #restore_configs
  100. #opt_enable MAKRPANEL
  101. #exec_test $1 $2 "Stuff" "$3"
  102. #
  103. # REPRAP_DISCOUNT_SMART_CONTROLLER, SDSUPPORT, BABYSTEPPING, RIGIDBOARD_V2, and DAC_MOTOR_CURRENT_DEFAULT
  104. #
  105. #restore_configs
  106. #opt_set MOTHERBOARD BOARD_RIGIDBOARD_V2
  107. #opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT BABYSTEPPING DAC_MOTOR_CURRENT_DEFAULT
  108. #exec_test $1 $2 "Stuff" "$3"
  109. # #
  110. # G3D_PANEL with SDCARD_SORT_ALPHA and STATUS_MESSAGE_SCROLLING
  111. #
  112. #restore_configs
  113. #opt_enable G3D_PANEL SDSUPPORT SDCARD_SORT_ALPHA STATUS_MESSAGE_SCROLLING SCROLL_LONG_FILENAMES
  114. #opt_set SDSORT_GCODE true SDSORT_USES_RAM true SDSORT_USES_STACK true SDSORT_CACHE_NAMES true
  115. #exec_test $1 $2 "Stuff" "$3"
  116. #
  117. # REPRAPWORLD_KEYPAD
  118. #
  119. # Can't find configuration details to get it to compile
  120. #restore_configs
  121. #opt_enable ULTRA_LCD REPRAPWORLD_KEYPAD REPRAPWORLD_KEYPAD_MOVE_STEP
  122. #exec_test $1 $2 "Stuff" "$3"
  123. #
  124. # RA_CONTROL_PANEL
  125. #
  126. #restore_configs
  127. #opt_enable RA_CONTROL_PANEL PINS_DEBUGGING
  128. #exec_test $1 $2 "Stuff" "$3"
  129. ######## I2C LCD/PANELS ##############
  130. #
  131. # !!!ATTENTION!!!
  132. # Most I2C configurations are failing at the moment because they require
  133. # a different Liquid Crystal library "LiquidTWI2".
  134. #
  135. # LCD_SAINSMART_I2C_1602
  136. #
  137. #restore_configs
  138. #opt_enable LCD_SAINSMART_I2C_1602
  139. #exec_test $1 $2 "Stuff" "$3"
  140. #
  141. # LCD_I2C_PANELOLU2
  142. #
  143. #restore_configs
  144. #opt_enable LCD_I2C_PANELOLU2
  145. #exec_test $1 $2 "Stuff" "$3"
  146. #
  147. # LCD_I2C_VIKI
  148. #
  149. #restore_configs
  150. #opt_enable LCD_I2C_VIKI
  151. #exec_test $1 $2 "Stuff" "$3"
  152. #
  153. # LCM1602
  154. #
  155. #restore_configs
  156. #opt_enable LCM1602
  157. #exec_test $1 $2 "Stuff" "$3"
  158. #
  159. # Test Laser features with 12864 LCD
  160. #
  161. restore_configs
  162. opt_set MOTHERBOARD BOARD_RAMPS_14_EFB EXTRUDERS 0 LCD_LANGUAGE en TEMP_SENSOR_COOLER 1 TEMP_SENSOR_1 0 SERIAL_PORT_2 2 \
  163. DEFAULT_AXIS_STEPS_PER_UNIT '{ 80, 80, 400 }' \
  164. DEFAULT_MAX_FEEDRATE '{ 300, 300, 5 }' \
  165. DEFAULT_MAX_ACCELERATION '{ 3000, 3000, 100 }' \
  166. MANUAL_FEEDRATE '{ 50*60, 50*60, 4*60 }' \
  167. AXIS_RELATIVE_MODES '{ false, false, false }'
  168. opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER SDSUPPORT EEPROM_SETTINGS EEPROM_BOOT_SILENT EEPROM_AUTO_INIT \
  169. LASER_FEATURE AIR_EVACUATION AIR_EVACUATION_PIN AIR_ASSIST AIR_ASSIST_PIN LASER_COOLANT_FLOW_METER MEATPACK_ON_SERIAL_PORT_1
  170. exec_test $1 $2 "REPRAP MEGA2560 RAMPS | Laser Feature | Air Evacuation | Air Assist | Cooler | Flowmeter | 12864 LCD | meatpack | SERIAL_PORT_2 " "$3"
  171. #
  172. # Test Laser features with 44780 LCD
  173. #
  174. restore_configs
  175. opt_set MOTHERBOARD BOARD_RAMPS_14_EFB EXTRUDERS 0 LCD_LANGUAGE en TEMP_SENSOR_COOLER 1 TEMP_SENSOR_1 0 \
  176. DEFAULT_AXIS_STEPS_PER_UNIT '{ 80, 80, 400 }' \
  177. DEFAULT_MAX_FEEDRATE '{ 300, 300, 5 }' \
  178. DEFAULT_MAX_ACCELERATION '{ 3000, 3000, 100 }' \
  179. MANUAL_FEEDRATE '{ 50*60, 50*60, 4*60 }' \
  180. AXIS_RELATIVE_MODES '{ false, false, false }'
  181. opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT EEPROM_SETTINGS EEPROM_BOOT_SILENT EEPROM_AUTO_INIT \
  182. LASER_FEATURE AIR_EVACUATION AIR_EVACUATION_PIN AIR_ASSIST AIR_ASSIST_PIN LASER_COOLANT_FLOW_METER I2C_AMMETER
  183. exec_test $1 $2 "REPRAP MEGA2560 RAMPS | Laser Feature | Air Evacuation | Air Assist | Cooler | Flowmeter | 44780 LCD " "$3"
  184. #
  185. # Test redundant temperature sensors + MAX TC
  186. #
  187. restore_configs
  188. opt_set MOTHERBOARD BOARD_RAMPS_14_EFB EXTRUDERS 1 \
  189. TEMP_SENSOR_0 -2 TEMP_SENSOR_REDUNDANT -2 \
  190. TEMP_SENSOR_REDUNDANT_SOURCE E1 TEMP_SENSOR_REDUNDANT_TARGET E0 \
  191. TEMP_0_CS_PIN 11 TEMP_1_CS_PIN 12
  192. exec_test $1 $2 "MEGA2560 RAMPS | Redundant temperature sensor | 2x MAX6675" "$3"
  193. #
  194. # Language files test with REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
  195. #
  196. #restore_configs
  197. #opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER SDSUPPORT
  198. #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
  199. #
  200. #restore_configs
  201. #opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT
  202. #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
  203. ######## Example Configurations ##############
  204. #
  205. # Test a basic DUAL_X_CARRIAGE configuration
  206. #
  207. use_example_configs Formbot/T_Rex_3
  208. exec_test $1 $2 "Formbot/T_Rex_3 example configuration." "$3"
  209. #
  210. # BQ Hephestos 2
  211. #restore_configs
  212. #use_example_configs BQ/Hephestos_2
  213. #exec_test $1 $2 "Stuff" "$3"
  214. #
  215. # Makibox Config need to check board type for Teensy++ 2.0
  216. #
  217. #use_example_configs makibox
  218. #exec_test $1 $2 "Stuff" "$3"
  219. #
  220. # tvrrug Config need to check board type for sanguino atmega644p
  221. #
  222. #use_example_configs tvrrug/Round2
  223. #exec_test $1 $2 "Stuff" "$3"
  224. # clean up
  225. restore_configs