teensy35 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. #!/usr/bin/env bash
  2. #
  3. # Build tests for Teensy 3.5/3.6 (ARM Cortex-M4)
  4. #
  5. # exit on first failure
  6. set -e
  7. restore_configs
  8. opt_set MOTHERBOARD BOARD_TEENSY35_36
  9. exec_test $1 $2 "Teensy3.5 with default config" "$3"
  10. #
  11. # Test as many features together as possible
  12. #
  13. restore_configs
  14. opt_set MOTHERBOARD BOARD_TEENSY35_36 \
  15. EXTRUDERS 2 TEMP_SENSOR_0 1 TEMP_SENSOR_1 5 TEMP_SENSOR_BED 1 \
  16. I2C_SLAVE_ADDRESS 63 \
  17. GRID_MAX_POINTS_X 16 \
  18. NOZZLE_CLEAN_START_POINT "{ { 10, 10, 3 }, { 10, 10, 3 } }" \
  19. NOZZLE_CLEAN_END_POINT "{ { 10, 20, 3 }, { 10, 20, 3 } }" \
  20. MANUAL_MOVE_DISTANCE_MM "100, 50, 10, 10, 0.1" \
  21. MANUAL_MOVE_DISTANCE_IN "1.000, 0.500, 0.100, 0.010, 0.001"
  22. opt_enable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER SDSUPPORT SDCARD_SORT_ALPHA \
  23. LCD_INFO_MENU LCD_PRINTER_INFO_IS_BOOTSCREEN TURBO_BACK_MENU_ITEM PREHEAT_SHORTCUT_MENU_ITEM \
  24. FILAMENT_WIDTH_SENSOR FILAMENT_LCD_DISPLAY CALIBRATION_GCODE BAUD_RATE_GCODE SOUND_MENU_ITEM \
  25. FIX_MOUNTED_PROBE Z_SAFE_HOMING AUTO_BED_LEVELING_BILINEAR Z_MIN_PROBE_REPEATABILITY_TEST DEBUG_LEVELING_FEATURE \
  26. BABYSTEPPING BABYSTEP_XY BABYSTEP_ZPROBE_OFFSET BABYSTEP_GFX_OVERLAY \
  27. PRINTCOUNTER NOZZLE_PARK_FEATURE NOZZLE_CLEAN_FEATURE SLOW_PWM_HEATERS PIDTEMPBED EEPROM_SETTINGS INCH_MODE_SUPPORT TEMPERATURE_UNITS_SUPPORT M100_FREE_MEMORY_WATCHER \
  28. ADVANCED_PAUSE_FEATURE ARC_SUPPORT BEZIER_CURVE_SUPPORT EXPERIMENTAL_I2CBUS EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES PARK_HEAD_ON_PAUSE \
  29. PHOTO_GCODE PHOTO_POSITION PHOTO_SWITCH_POSITION PHOTO_SWITCH_MS PHOTO_DELAY_MS PHOTO_RETRACT_MM \
  30. HOST_ACTION_COMMANDS HOST_PROMPT_SUPPORT HOST_STATUS_NOTIFICATIONS
  31. exec_test $1 $2 "Teensy3.5 with many features" "$3"
  32. #
  33. # Test a Sled Z Probe with Linear leveling
  34. #
  35. restore_configs
  36. opt_set MOTHERBOARD BOARD_TEENSY35_36
  37. opt_enable EEPROM_SETTINGS Z_PROBE_SLED Z_SAFE_HOMING AUTO_BED_LEVELING_LINEAR DEBUG_LEVELING_FEATURE GCODE_MACROS
  38. exec_test $1 $2 "Sled Z Probe with Linear leveling" "$3"
  39. #
  40. # Test a Servo Probe
  41. #
  42. # restore_configs
  43. # opt_set MOTHERBOARD BOARD_TEENSY35_36 NUM_SERVOS 1
  44. # opt_enable Z_PROBE_SERVO_NR Z_SERVO_ANGLES DEACTIVATE_SERVOS_AFTER_MOVE \
  45. # AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE EEPROM_SETTINGS
  46. # exec_test $1 $2 "Servo Probe"
  47. #
  48. # ...with AUTO_BED_LEVELING_3POINT, DEBUG_LEVELING_FEATURE, EEPROM_SETTINGS, EEPROM_CHITCHAT, EXTENDED_CAPABILITIES_REPORT, and AUTO_REPORT_TEMPERATURES
  49. #
  50. # opt_enable AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE EEPROM_SETTINGS \
  51. # EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES
  52. # exec_test $1 $2 "...with AUTO_BED_LEVELING_3POINT, DEBUG_LEVELING_FEATURE, EEPROM_SETTINGS, EEPROM_CHITCHAT, EXTENDED_CAPABILITIES_REPORT, and AUTO_REPORT_TEMPERATURES"
  53. #
  54. # Test MAGNETIC_PARKING_EXTRUDER with LCD
  55. #
  56. restore_configs
  57. opt_set MOTHERBOARD BOARD_TEENSY35_36 EXTRUDERS 2 TEMP_SENSOR_1 1 SOL0_PIN 29 EXTRUDERS 2
  58. opt_enable PARKING_EXTRUDER ULTIMAKERCONTROLLER
  59. exec_test $1 $2 "PARKING_EXTRUDER with LCD" "$3"
  60. #
  61. # Mixing Extruder
  62. #
  63. restore_configs
  64. opt_set MOTHERBOARD BOARD_TEENSY35_36 MIXING_STEPPERS 2
  65. opt_enable MIXING_EXTRUDER DIRECT_MIXING_IN_G1 GRADIENT_MIX GRADIENT_VTOOL REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
  66. opt_disable DISABLE_OTHER_EXTRUDERS
  67. exec_test $1 $2 "Mixing Extruder" "$3"
  68. #
  69. # Test SWITCHING_EXTRUDER
  70. #
  71. # restore_configs
  72. # opt_set MOTHERBOARD BOARD_TEENSY35_36 EXTRUDERS 2 NUM_SERVOS 1
  73. # opt_enable SWITCHING_EXTRUDER ULTIMAKERCONTROLLER
  74. # exec_test $1 $2 "SWITCHING_EXTRUDER"
  75. #
  76. # Enable COREXY
  77. #
  78. restore_configs
  79. opt_set MOTHERBOARD BOARD_TEENSY35_36 \
  80. X_DRIVER_TYPE TMC5160 Y_DRIVER_TYPE TMC5160 \
  81. X_CURRENT_HOME 750 Y_CURRENT_HOME 750 \
  82. X_MIN_ENDSTOP_HIT_STATE LOW Y_MIN_ENDSTOP_HIT_STATE LOW \
  83. X_CS_PIN 46 Y_CS_PIN 47
  84. opt_enable COREXY MONITOR_DRIVER_STATUS SENSORLESS_HOMING X_STALL_SENSITIVITY Y_STALL_SENSITIVITY
  85. exec_test $1 $2 "Teensy 3.5/3.6 COREXY" "$3"
  86. #
  87. # Enable COREXZ
  88. #
  89. restore_configs
  90. opt_set MOTHERBOARD BOARD_TEENSY35_36 BACKLASH_MEASUREMENT_FEEDRATE 600
  91. opt_enable COREXZ BACKLASH_COMPENSATION BACKLASH_GCODE CORE_BACKLASH
  92. exec_test $1 $2 "Teensy 3.5/3.6 COREXZ | BACKLASH" "$3"
  93. #
  94. # Enable Dual Z with Dual Z endstops
  95. #
  96. restore_configs
  97. opt_set MOTHERBOARD BOARD_TEENSY35_36 Z_DRIVER_TYPE A4988 Z2_DRIVER_TYPE A4988 Z2_MIN_PIN 2 X_MAX_PIN -1
  98. opt_enable Z_MULTI_ENDSTOPS
  99. exec_test $1 $2 "Dual Z with Dual Z endstops" "$3"