My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

mega2560 8.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  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 \
  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 CANCEL_OBJECTS SOUND_MENU_ITEM \
  21. EEPROM_SETTINGS EEPROM_CHITCHAT GCODE_MACROS CUSTOM_MENU_MAIN \
  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 \
  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 FIL_RUNOUT2_PIN 16 FIL_RUNOUT3_PIN 17 FIL_RUNOUT4_PIN 4 FIL_RUNOUT5_PIN 5
  64. opt_enable MIXING_EXTRUDER GRADIENT_MIX GRADIENT_VTOOL CR10_STOCKDISPLAY \
  65. USE_CONTROLLER_FAN CONTROLLER_FAN_EDITABLE CONTROLLER_FAN_IGNORE_Z \
  66. FILAMENT_RUNOUT_SENSOR ADVANCED_PAUSE_FEATURE NOZZLE_PARK_FEATURE
  67. exec_test $1 $2 "Azteeg X3 | Mixing Extruder (x5) | Gradient Mix | Greek" "$3"
  68. #
  69. # Test SPEAKER with BOARD_BQ_ZUM_MEGA_3D and BQ_LCD_SMART_CONTROLLER
  70. #
  71. #restore_configs
  72. #opt_set MOTHERBOARD BOARD_BQ_ZUM_MEGA_3D \
  73. # LCD_FEEDBACK_FREQUENCY_DURATION_MS 10 LCD_FEEDBACK_FREQUENCY_HZ 100
  74. #opt_enable BQ_LCD_SMART_CONTROLLER SPEAKER
  75. #
  76. # Enable COREXY
  77. #
  78. #restore_configs
  79. #opt_enable COREXY
  80. #exec_test $1 $2 "Stuff" "$3"
  81. ######## Other Standard LCD/Panels ##############
  82. #
  83. # ULTRA_LCD
  84. #
  85. #restore_configs
  86. #opt_enable ULTRA_LCD
  87. #exec_test $1 $2 "Stuff" "$3"
  88. #
  89. # DOGLCD
  90. #
  91. #restore_configs
  92. #opt_enable DOGLCD
  93. #exec_test $1 $2 "Stuff" "$3"
  94. #
  95. # MAKRPANEL
  96. # Needs to use Melzi and Sanguino hardware
  97. #
  98. #restore_configs
  99. #opt_enable MAKRPANEL
  100. #exec_test $1 $2 "Stuff" "$3"
  101. #
  102. # REPRAP_DISCOUNT_SMART_CONTROLLER, SDSUPPORT, BABYSTEPPING, RIGIDBOARD_V2, and DAC_MOTOR_CURRENT_DEFAULT
  103. #
  104. #restore_configs
  105. #opt_set MOTHERBOARD BOARD_RIGIDBOARD_V2
  106. #opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT BABYSTEPPING DAC_MOTOR_CURRENT_DEFAULT
  107. #exec_test $1 $2 "Stuff" "$3"
  108. # #
  109. # G3D_PANEL with SDCARD_SORT_ALPHA and STATUS_MESSAGE_SCROLLING
  110. #
  111. #restore_configs
  112. #opt_enable G3D_PANEL SDSUPPORT SDCARD_SORT_ALPHA STATUS_MESSAGE_SCROLLING SCROLL_LONG_FILENAMES
  113. #opt_set SDSORT_GCODE true SDSORT_USES_RAM true SDSORT_USES_STACK true SDSORT_CACHE_NAMES true
  114. #exec_test $1 $2 "Stuff" "$3"
  115. #
  116. # REPRAPWORLD_KEYPAD
  117. #
  118. # Cant find configuration details to get it to compile
  119. #restore_configs
  120. #opt_enable ULTRA_LCD REPRAPWORLD_KEYPAD REPRAPWORLD_KEYPAD_MOVE_STEP
  121. #exec_test $1 $2 "Stuff" "$3"
  122. #
  123. # RA_CONTROL_PANEL
  124. #
  125. #restore_configs
  126. #opt_enable RA_CONTROL_PANEL PINS_DEBUGGING
  127. #exec_test $1 $2 "Stuff" "$3"
  128. ######## I2C LCD/PANELS ##############
  129. #
  130. # !!!ATTENTION!!!
  131. # Most I2C configurations are failing at the moment because they require
  132. # a different Liquid Crystal library "LiquidTWI2".
  133. #
  134. # LCD_SAINSMART_I2C_1602
  135. #
  136. #restore_configs
  137. #opt_enable LCD_SAINSMART_I2C_1602
  138. #exec_test $1 $2 "Stuff" "$3"
  139. #
  140. # LCD_I2C_PANELOLU2
  141. #
  142. #restore_configs
  143. #opt_enable LCD_I2C_PANELOLU2
  144. #exec_test $1 $2 "Stuff" "$3"
  145. #
  146. # LCD_I2C_VIKI
  147. #
  148. #restore_configs
  149. #opt_enable LCD_I2C_VIKI
  150. #exec_test $1 $2 "Stuff" "$3"
  151. #
  152. # LCM1602
  153. #
  154. #restore_configs
  155. #opt_enable LCM1602
  156. #exec_test $1 $2 "Stuff" "$3"
  157. #
  158. # Test Laser features with 12864 LCD
  159. #
  160. restore_configs
  161. opt_set MOTHERBOARD BOARD_RAMPS_14_EFB LCD_LANGUAGE en TEMP_SENSOR_COOLER 1 EXTRUDERS 0 TEMP_SENSOR_1 0 SERIAL_PORT_2 2
  162. opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER SDSUPPORT EEPROM_SETTINGS EEPROM_BOOT_SILENT EEPROM_AUTO_INIT \
  163. LASER_FEATURE LASER_COOLANT_FLOW_METER MEATPACK_ON_SERIAL_PORT_1
  164. exec_test $1 $2 "REPRAP MEGA2560 RAMPS | Laser Feature | Cooler | Flowmeter | 12864 LCD | meatpack | SERIAL_PORT_2 " "$3"
  165. #
  166. # Test Laser features with 44780 LCD
  167. #
  168. restore_configs
  169. opt_set MOTHERBOARD BOARD_RAMPS_14_EFB LCD_LANGUAGE en TEMP_SENSOR_COOLER 1 EXTRUDERS 0 TEMP_SENSOR_1 0
  170. opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT EEPROM_SETTINGS EEPROM_BOOT_SILENT EEPROM_AUTO_INIT \
  171. LASER_FEATURE LASER_COOLANT_FLOW_METER
  172. exec_test $1 $2 "REPRAP MEGA2560 RAMPS | Laser Feature | Cooler | Flowmeter | 44780 LCD " "$3"
  173. #
  174. # Language files test with REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
  175. #
  176. #restore_configs
  177. #opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER SDSUPPORT
  178. #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
  179. #
  180. #restore_configs
  181. #opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT
  182. #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
  183. ######## Example Configurations ##############
  184. #
  185. # Test a basic DUAL_X_CARRIAGE configuration
  186. #
  187. use_example_configs Formbot/T_Rex_3
  188. exec_test $1 $2 "Formbot/T_Rex_3 example configuration." "$3"
  189. #
  190. # BQ Hephestos 2
  191. #restore_configs
  192. #use_example_configs BQ/Hephestos_2
  193. #exec_test $1 $2 "Stuff" "$3"
  194. #
  195. # Makibox Config need to check board type for Teensy++ 2.0
  196. #
  197. #use_example_configs makibox
  198. #exec_test $1 $2 "Stuff" "$3"
  199. #
  200. # tvrrug Config need to check board type for sanguino atmega644p
  201. #
  202. #use_example_configs tvrrug/Round2
  203. #exec_test $1 $2 "Stuff" "$3"
  204. # clean up
  205. restore_configs